标签: easy-install

通过 pip 或 easy_install 安装 wxpython

我在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)

python easy-install pip

21
推荐指数
3
解决办法
5万
查看次数

easy_install 不会通过代理连接

我在 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)

virtualbox python proxy easy-install ubuntu

19
推荐指数
2
解决办法
3万
查看次数

在 Ubuntu/Debian 中,如何将软件包标记为不可自动移除?

假设我有一个使用 Synaptic 安装的包(在本例中为 Python 包)。由于这个包的版本有些过时,我在 Synaptic 中将其删除,然后使用easy_install. 它的一个依赖项也是使用 Synaptic 安装的,但我宁愿保留 Synaptic 安装的版本而不是easy_installing它。

唯一的问题是依赖项现在被标记为自动可移除。除了删除并重新安装之外,还有什么方法可以将其标记为手动安装?如果它有所作为,我正在使用 Ubuntu Jaunty。

debian easy-install ubuntu synaptic-pkg-mgr

9
推荐指数
3
解决办法
2670
查看次数

OS X Lion easy_install 需要 sudo ...?

我在 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)

python easy-install pip osx-lion

7
推荐指数
1
解决办法
5576
查看次数

为什么 pip 没有在 CentOS 6 上的 easy_install 中列出?从哪里得到它?

我正在尝试在 CentOS 6 上为 python 安装 pip。我想通过 easy_install 安装它,但它不存在。我试图用 find 命令找到easy_install,但没有运气。我尝试用 yum 重新安装 python,但仍然找不到easy_install。

python easy-install pip centos-6

7
推荐指数
2
解决办法
3万
查看次数

为什么我会收到 easy_install 错误“'NoneType' 对象没有属性 'clone'”?

我正在尝试运行以下命令:

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 上完整错误

python easy-install

5
推荐指数
1
解决办法
6761
查看次数

Easy_install 错误版本的python 模块(Mac OS)

我在 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)

python easy-install macos

5
推荐指数
1
解决办法
8415
查看次数

使用自制软件处理 pip(easy_install) 的建议方法?

我知道有brew-gembrew-pip但它仍然很容易混淆。假设我的 Mac OS X 是 10.7.2。

  • 据我所知,Python 模块至少有 3 个位置(假设为 2.7):
    1. /System/Library/Frameworks/Python.framework/Versions/2.7/
    2. /Library/Python/2.7/site-packages
    3. /usr/local/lib/python2.7/site-packages/(在自制软件中控制)
  • 对于某些 Python 模块,将它们pip安装到2,即所谓的本地/自定义 Python 模块位置,一切看起来和运行都很好。当然,readline的通过的easy_installIPython的建议我安装的readline通过easy_install的,而不是PIP
  • 对于某些人来说,它会尝试将一些杂项文件(例如,man,doc,...)安装到系统范围的位置,这需要sudo!例如,ipython坚持将mandoc安装到/System/Library/Frameworks/Python.framework/Versions/2.7/share/,这违反了权限问题,我所能做的就是使用sudo
  • 对于brew安装的一些 Python 模块,它们被符号链接到/usr/local/lib/python2.7/site-packages/。除了您必须记住将此位置添加到PYTHONPATH之外,一切似乎都很棒。

我想知道任何建议和统一的方法来处理这些质量,或者任何解释来使这些东西变得清晰。

python homebrew easy-install pip

5
推荐指数
1
解决办法
2855
查看次数

SSL:docker 容器中的 CERTIFICATE_VERIFY_FAILED 错误

我在执行 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)

python ssl easy-install pip docker

5
推荐指数
2
解决办法
1万
查看次数