我似乎无法从 requirements.txt 安装,运行以下命令
时出现错误~/portia$ dir
docker Dockerfile docs LICENSE nginx provision.sh README.md requirements.txt slybot slyd slyd.conf Vagrantfile
(portia_example) programmer@Timmy:~/portia$ pip install -r requirements.txt
。这是读取和安装模块的命令,运行它时出现以下错误
:~/portia$ pip install -r requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Usage: pip [options]
Invalid requirement: --allow-external=mysql-connector-python
pip: error: no such option: --allow-external
如果安装正确,应该可以通过某个本地主机IP进行访问,并从那里运行python代码。
注意:我正在使用Linux
提前感谢您的帮助