我在wxpython
使用pip
.
这是我当前的输出:
[myuserid]% sudo pip install wxpython
Downloading/unpacking wxpython
Downloading wxPython2.8-win64-devel-2.8.11.0-msvc9x64.tar.bz2 (7.2Mb): 7.2Mb downloaded
Running setup.py egg_info for package wxpython
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/Users/myuserid/build/wxpython/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/Users/myuserid/build/wxpython/setup.py'
----------------------------------------
Command python setup.py egg_info failed with error code …
Run Code Online (Sandbox Code Playgroud) 我在 VirtualBox 下运行 Ubuntu Server 10.04 64 位,似乎除了easy_install 和 pip之外的所有东西都可以连接到 Internet。我已经设置并导出了 http_proxy 环境变量,并且还在我知道的所有其他位置设置了代理地址。然而,easy_install 总是返回“网络无法访问”:
:~$ echo $http_proxy
http://192.168.1.25:80/
:~$ grep "http_proxy" /etc/bash.bashrc
export http_proxy=http://192.168.1.25:80/
:~$ grep "http_proxy" /etc/wgetrc
http_proxy = http://192.168.1.25:80/
:~$ ping pypi.python.org
PING pypi.python.org (82.94.164.168) 56(84) bytes of data.
64 bytes from pypi.python.org (82.94.164.168): icmp_seq=1 ttl=53 time=114 ms
64 bytes from pypi.python.org (82.94.164.168): icmp_seq=2 ttl=53 time=113 ms
64 bytes from pypi.python.org (82.94.164.168): icmp_seq=3 ttl=53 time=113 ms
64 bytes from pypi.python.org (82.94.164.168): icmp_seq=4 ttl=53 time=113 …
Run Code Online (Sandbox Code Playgroud) 假设我有一个使用 Synaptic 安装的包(在本例中为 Python 包)。由于这个包的版本有些过时,我在 Synaptic 中将其删除,然后使用easy_install
. 它的一个依赖项也是使用 Synaptic 安装的,但我宁愿保留 Synaptic 安装的版本而不是easy_installing
它。
唯一的问题是依赖项现在被标记为自动可移除。除了删除并重新安装之外,还有什么方法可以将其标记为手动安装?如果它有所作为,我正在使用 Ubuntu Jaunty。
我在 OS X Lion 上,想设置 python 虚拟环境。我想使用 virtualenvwrapper。
有人可以确认正确的方法是通过easy_install(以及随后的pip)安装软件包使用sudo
上下文: 安装 virtaulenv 我想使用 pip,所以我做了
$ easy_install pip
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-876.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Library/Python/2.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 CentOS 6 上为 python 安装 pip。我想通过 easy_install 安装它,但它不存在。我试图用 find 命令找到easy_install,但没有运气。我尝试用 yum 重新安装 python,但仍然找不到easy_install。
我正在尝试运行以下命令:
easy_install MySQLdb
Run Code Online (Sandbox Code Playgroud)
但是,我收到错误:
'NoneType' object has no attribute 'clone'
Run Code Online (Sandbox Code Playgroud)
我正在使用 Windows 7 x64 和 Python 2.6 x86(我尝试过 Python x64,但我遇到了同样的错误)。我也在使用 setuptools 0.6c11(仅适用于 32 位)。
请参阅Pastebin 上的完整错误。
我在 Mac 上安装了 Python 2.7。在终端中输入“python”时,它显示:
$ python
Python 2.7 (r27:82508, Jul 3 2010, 20:17:05)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Run Code Online (Sandbox Code Playgroud)
Python 版本在这里是正确的。
但是当我尝试 easy_install 一些模块时。系统将安装python 2.6版本无法导入到Python 2.7的模块。当然,我无法在代码中执行所需的功能。下面是一个例子easy_install graphy
:
$ easy_install graphy
Searching for graphy
Reading pypi.python.org/simple/graphy/
Reading http://code.Google.com/p/graphy/
Best match: Graphy 1.0.0
Downloading http://pypi.python.org/packages/source/G/Graphy/Graphy- 1.0.0.tar.gz#md5=390b4f9194d81d0590abac90c8b717e0
Processing Graphy-1.0.0.tar.gz
Running Graphy-1.0.0/setup.py -q bdist_egg --dist-dir /var/folders/fH/fHwdy4WtHZOBytkg1nOv9E+++TI/-Tmp-/easy_install-cFL53r/Graphy-1.0.0/egg-dist-tmp-YtDCZU
warning: no files found matching '*.tmpl' under directory 'graphy'
warning: no files found matching …
Run Code Online (Sandbox Code Playgroud) 我知道有brew-gem和brew-pip但它仍然很容易混淆。假设我的 Mac OS X 是 10.7.2。
我想知道任何建议和统一的方法来处理这些质量,或者任何解释来使这些东西变得清晰。
我在执行 easy_install pip 时遇到以下错误消息:
root@ff45b7b74944:/# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading [--https link here, like above--]
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: …
Run Code Online (Sandbox Code Playgroud)