首页 > 解决方案 > 无法从 pycharm/heroku 找到我的包

问题描述

我已经将一个包部署到https://pypi.org/project/core-lib/0.0.1.dev1/

但是pycharmheroku找不到带有此错误消息的我的包裹

你能帮我吗?

谢谢

皮查姆

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

标签: pythonpippypi

解决方案


使用 PyCharm 从 pypi 安装你的包,我能找到它

   (randomtesting) C:\Users\User\PycharmProjects\randomtesting>pip list
    Package                Version
    ---------------------- -------------------
    core-lib               0.0.1.dev1

也许该文件最近才发布到 pypi 中?

我再次检查了链接,现在它具有最新版本。也许试试这个?

pip install core-lib

推荐阅读