我可以成功地安装egg for morfeusz 2,
python -m easy_install http://sgjp.pl/morfeusz/download/20181014/ubuntu-xenial/morfeusz2-0.4.0-py3.7-win-amd64.egg
字符串
然而,我通过requirements.txt
定义的所有其他依赖项。我希望它们都以一致的方式定义。morfeusz2在任何PyPI repo中都不存在。我如何以一致的方式为我的项目定义依赖项?
例如,我尝试定义以下requirements.txt
文件:
django
pint
http://sgjp.pl/morfeusz/download/20181014/ubuntu-xenial/morfeusz2-0.4.0-py3.7-win-amd64.egg
型
但是,当运行pip install -r requirements.txt
时,它会失败:
(mealplanner) D:\Projects-intellij\djangoproject\mealplanner>pip install -r requirementx.txt
Collecting http://sgjp.pl/morfeusz/download/20181014/ubuntu-xenial/morfeusz2-0.4.0-py3.7-win-amd64.egg (from -r requirementx.txt (line 3))
Downloading http://sgjp.pl/morfeusz/download/20181014/ubuntu-xenial/morfeusz2-0.4.0-py3.7-win-amd64.egg (7.7MB)
100% |████████████████████████████████| 7.7MB 11.4MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\oem\virtualenv\mealplanner\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\OEM\\AppData\\Local\\Temp\\pip-req-build-xucfpk6m\\setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\OEM\AppData\Local\Temp\pip-req-build-xucfpk6m\
型
如何使用pip install安装egg?
1条答案
按热度按时间f87krz0w1#
幸运的是,你提到的包现在包含在PyPI:morfeusz2 · PyPI中。然而,也建议链接到GitHub仓库(或类似的东西),虽然遗憾的是它不在任何开源网站上,但你可以考虑在其官方网站上添加链接,例如:
http://download.sgjp.pl/morfeusz/20231112/Windows/64/morfeusz2-1.99.7-20231112-cp311-cp311-win_amd64.whl的
(for Windows和Cpython 3.11,正如上面提到的那样)
希望这能解决你的问题,