【发布时间】:2021-04-21 09:34:25
【问题描述】:
我通过
创建了“requirements.txt”pip freeze > requirements.txt
在本地目录并将其推送到我的远程 git 存储库。
然后我将它拉到“pythonanywhere.com”的 bash 控制台,然后移动到安装“requirements.txt”的目录。
尝试过
pip install -r requirements.txt
但是有一个错误:
错误:由于 EnvironmentError 无法安装软件包:[Errno 2] 没有这样的文件或目录:'/tmp/build/.../.../work'
我正在使用 python 3.8 并且 pip 已经升级到最新版本。 我还检查了我是否走在正确的道路上
ls
它显示“requirements.txt”
有什么问题?
【问题讨论】:
-
requirements.txt的内容是什么? -
asgiref @ file:///tmp/build/80754af9/asgiref_1605055780383/work certifi==2020.12.5 Django @ file:///tmp/build/80754af9/django_1609784082548/work mkl-fft= =1.2.0 mkl-random==1.1.1 mkl-service==2.3.0 numpy @ file:///C:/ci/numpy_and_numpy_base_1603466732592/work olefile==0.46 Pillow @ file:///C:/ci /pillow_1609786840597/work psycopg2@file:///C:/ci/psycopg2_1608147681824/work pytz@file:///tmp/build/80754af9/pytz_1608922264688/work 六@file:///C:/ci/six_1605187374963/work sqlparse@file:///tmp/build/80754af9/sqlparse_1602184451250/work wincertstore==0.2 这就是全部
标签: python installation pip requirements.txt