Tag: 易于安装

pip忽略setup.py中的dependency_links

我在我的setup.py中有dependency_links: … dependency_links = ['http://github.com/robot-republic/python-s3/tarball/master.tar.gz#egg=python-s3'], … 但它不起作用。 但是,install_requires工作正常。 也许有另一种方法来设置的setup.py所需的git回购?

点安装几乎任何库的问题

我很难用pip来安装几乎所有东西。 我是新来的编程,所以我想也许这是我一直在做错的东西,并select了easy_install来获得我所需要做的大部分,这一般工作。 但是,现在我正在尝试下载nltk库,而且也没有完成任务。 我试图进入 sudo pip install nltk 但得到以下回应: /Library/Frameworks/Python.framework/Versions/2.7/bin/pip run on Sat May 4 00:15:38 2013 Downloading/unpacking nltk Getting page https://pypi.python.org/simple/nltk/ Could not fetch URL [need more reputation to post link]: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm> Will skip URL [need […]

如何在Windows上使用Python的“easy_install”…并不那么容易

在Windows XP上安装Python 2.7后,手动将%PATH%设置为python.exe (为什么python安装程序不这样做?),然后安装setuptools 0.6c11 (为什么python安装程序不这样做?),然后手动将%PATH%设置为easy_install.exe (为什么安装程序不这样做?),我终于尝试安装easy_install的python软件包,但easy_install无法安装pywin32软件包,这是一个依赖。 我怎样才能使easy_install在Windows XP上正常工作? 失败如下: C:\> easy_install winpexpect 寻找winpexpect 最佳匹配:winpexpect 1.4 处理winpexpect-1.4-py2.7.egg winpexpect 1.4已经是easy-install.pth中的活动版本 使用c:\​​ python27 \ lib \ site-packages \ winpexpect-1.4-py2.7.egg 处理winpexpect的依赖关系 searchpywin32> = 214 阅读http://pypi.python.org/simple/pywin32/ 阅读http://sf.net/projects/pywin32 阅读http://sourceforge.net/project/showfiles.php?group_id=78018 找不到pywin32> = 214的本地软件包或下载链接 最佳匹配:无 回溯(最近一次通话最后): 文件“C:\ python27 \ scripts \ easy_install-script.py”,第8行, load_entry_point('setuptools == 0.6c11','console_scripts','easy_install')() 文件“C:\ python27 \ lib \ site-packages \ […]

ImportError:没有名为Crypto.Cipher的模块

当我尝试运行app.py(Python 3.3,PyCrypto 2.6)时,我的virtualenv一直返回上面列出的错误。 我的import声明只是from Crypto.Cipher import AES 。 我寻找重复,你可能会说有一些,但我试过的解决scheme(虽然大多数甚至没有解决scheme),没有任何工作。 你可以看到下面的PyCrypto文件是什么样的:

为什么不能easy_installfindMySQLdb?

这是我试过的: $ easy_install-2.6 -d /home/user/lib/python2.6 MySQLdb Searching for MySQLdb Reading http://pypi.python.org/simple/MySQLdb/ Couldn't find index page for 'MySQLdb' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for MySQLdb error: Could not find suitable distribution for Requirement.parse('MySQLdb')

用easy_install安装特定的版本

我正在尝试安装lxml 。 我看了一下这个网站,版本2.2.8对我来说看起来很合理,但是当我做easy_install lxml ,它安装了版本2.3.beta1,这并不是我想要的我想的。 什么是解决这个问题的最好方法,以及如何强制easy_install安装特定的版本? (Mac OS X 10.6)

ImportError:没有名为PIL的模块

我在shell中使用这个命令来安装PIL: easy_install PIL 然后我运行python并input: import PIL 。 但是我得到这个错误: Traceback (most recent call last): File "<console>", line 1, in <module> ImportError: No module named PIL 我从来没有这样的问题,你觉得呢?

什么是正式的“首选”的方式来安装系统pip和virtualenv?

难道这是人们似乎最经常推荐的吗? $ sudo apt-get install python-setuptools $ sudo easy_install pip $ sudo pip install virtualenv 或者,我从http://www.pip-installer.org/en/latest/installing.html获得 : $ curl -O https://github.com/pypa/virtualenv/raw/master/virtualenv.py $ python virtualenv.py my_new_env $ . my_new_env/bin/activate (my_new_env)$ pip install … 或者完全不同的东西?

在64位Windows上安装SetupTools

我在Windows 7 64位上运行Python 2.7,当我运行setuptools的安装程序时,它告诉我Python 2.7没有安装。 具体的错误信息是: `Python Version 2.7 required which was not found in the registry` 我安装的Python版本是: `Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32` 我正在查看setuptools网站,并没有提到64位Windows的任何安装程序。 我错过了什么,或者我必须从源代码安装?

dist-packages和site-packages有什么区别?

python软件包的安装过程让我感到有些恼火。 具体来说,dist-packages目录和site-packages目录中安装的软件包有什么不同?