[英]Unable to install package using setup.py
You just mixed up something.Have a look at pip install usage and Installing Python Modules .你只是混淆了一些东西。看看pip install usage和Installing Python Modules 。
If you want to download a module source distribution and install it, you should unpack the archive into a similarly-named directory: foo-1.0
.如果你想下载模块源代码分发并安装它,你应该将存档解压到一个类似名称的目录中:
foo-1.0
。 Additionally, the distribution will contain a setup script setup.py
,and then run this command from a terminal:此外,发行版将包含安装脚本
setup.py
,然后从终端运行此命令:
python setup.py install
You can use pip install
if you want to install packages from:如果要从以下位置安装软件包,可以使用
pip install
:
Hope this helps.希望这可以帮助。
Use the following:使用以下内容:
python setup.py install
Try this python setup.py install
试试这个
python setup.py install
Navigate to the folder containing the package导航到包含包的文件夹
eg: cd /Desktop/packages/foo-1.0/
you can install the package either by您可以通过以下方式安装软件包
python setup.py install
or by或通过
pip install ./
in Linux use在 Linux 中使用
sudo python3 setup.py install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.