如何在Python2.7中使用pypi安装软件包?
这个问题,我在尝试用pypi安装netstat包时遇到过如何在Python2.7中使用pypi安装软件包?,python,pypi,Python,Pypi,这个问题,我在尝试用pypi安装netstat包时遇到过 [opmeitle@localhost ~]$ sudo pip install netstat [sudo] password for opmeitle: Downloading/unpacking netstat Running setup.py egg_info for package netstat file nester_g:.py (for module nester_g:) not found Instal
[opmeitle@localhost ~]$ sudo pip install netstat
[sudo] password for opmeitle:
Downloading/unpacking netstat
Running setup.py egg_info for package netstat
file nester_g:.py (for module nester_g:) not found
Installing collected packages: netstat
Running setup.py install for netstat
file nester_g:.py (for module nester_g:) not found
file nester_g:.py (for module nester_g:) not found
warning: install_lib: 'build/lib' does not exist -- no Python modules to install
file nester_g:.py (for module nester_g:) not found
file nester_g:.py (for module nester_g:) not found
Successfully installed netstat
Cleaning up...
还有另外一个问题:如何在python2.7而不是pytho3中安装软件包
pip-2.7安装xxx
。对于您安装的每个python版本,通常都有一个pip-x.y$ virtualenv path/to/project -p /usr/bin/python2.7
然后,一个pip install
命令将自动安装python2.7的包