我正在尝试将我最近创建的软件包安装到Heroku应用程序中。 Heroku似乎使用旧版本的pip,这会阻止我的软件包正确安装。我用repl.it重复了这个过程,看看会发生什么,这就是我得到的:
Repl.it: Installing fresh packages
Repl.it: zoho_crm
Collecting zoho_crm
Downloading
https://files.pythonhosted.org/packages/8e/73/a1464dd121fec9579c724de6b9b3243ea733fb85d441b928ff467ec1328f/zoho_crm-0.5.tar.gz
Building wheels for collected packages: zoho-crm
Running setup.py bdist_wheel for zoho-crm: started
Running setup.py bdist_wheel for zoho-crm: finished with status 'done'
Stored in directory: /home/runner/.cache/pip/wheels/46/66/f9/c9604984f6670461c451dd9431105760405d06c658d3b44f01
Successfully built zoho-crm
Installing collected packages: zoho-crm
Successfully installed zoho-crm-0.5
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Repl.it: package installation success
Traceback (most recent call last):
File "python", line 1, in <module>
ModuleNotFoundError: No module named 'zoho_crm'
我的代码的第1行(唯一的一行)是import zoho_crm
这也是我在Heroku中遇到的错误。
我在本地计算机上更新pip没有问题,但是这些云服务的更新似乎更新但不坚持。
有什么建议吗?
答案 0 :(得分:0)
该版本警告仅为警告,现在可以安全地忽略。你的问题与pip
无关,问题是由破坏的包zoho_crm
引起的 - 它不包含任何可安装的东西,既不包含python模块也不包含包。