python - 无法从 pycharm/heroku 找到我的包
问题描述
我已经将一个包部署到https://pypi.org/project/core-lib/0.0.1.dev1/
但是pycharm
或heroku
找不到带有此错误消息的我的包裹
你能帮我吗?
谢谢
皮查姆
No matching package version found: 'core-lib==0.0.1.dev1' (required: ==0.0.1.dev1, installed: <nothing>, latest: <nothing>)
heroku 部署
-----> Installing requirements with pip
ERROR: Could not find a version that satisfies the requirement core-lib==0.0.0.8 (from -r /tmp/build_c6b601b1/requirements.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for core-lib==0.0.0.8 (from -r /tmp/build_c6b601b1/requirements.txt (line 1))
! Push rejected, failed to compile Python app.
! Push failed
解决方案
使用 PyCharm 从 pypi 安装你的包,我能找到它
(randomtesting) C:\Users\User\PycharmProjects\randomtesting>pip list
Package Version
---------------------- -------------------
core-lib 0.0.1.dev1
也许该文件最近才发布到 pypi 中?
我再次检查了链接,现在它具有最新版本。也许试试这个?
pip install core-lib
推荐阅读
- javascript - 反应上下文打字稿问题
- python - 如果您在读取 csv 文件后 seek(0),则 line_num 属性不会重置。为什么会发生这种情况?
- python-3.x - FastAPI 通过 SqlAlchemy 处理多个数据库连接
- python - 从 url 响应(文本文件)解析 XML 错误,开始时带有 HTML 块
- c++ - 我正在尝试在 C++ 中使用运算符重载,但是当我去实现该函数时,它会提供此错误
- assembly - 如何在汇编中初始化数组的大小和指向数组的指针?
- regex - IDA 搜索多条指令
- python - 从python中的前导零中只打印一个零
- cmake - Cmake 的 SET 会发生什么
- amazon-web-services - 在 AWS Route 53 中创建子域并在 WIX 上配置以路由子域请求