easy-install

Find all packages installed with easy_install/pip?

你。 提交于 2019-11-26 19:14:35
Is there a way to find all Python PyPI packages that were installed with easy_install or pip? I mean, excluding everything that was/is installed with the distributions tools (in this case apt-get on Debian). Paul Woolcock pip freeze will output a list of installed packages and their versions. It also allows you to write those packages to a file that can later be used to set up a new environment. https://pip.pypa.io/en/stable/reference/pip_freeze/#pip-freeze keybits As of version 1.3 of pip you can now use pip list It has some useful options including the ability to show outdated packages. Here

How to pip or easy_install tkinter on Windows

╄→尐↘猪︶ㄣ 提交于 2019-11-26 19:06:55
问题 My Idle is throwing errors that and says tkinter can't be imported. Is there a simple way to install tkinter via pip or easy_install ? There seem to be a lot of package names flying around for this... This and other assorted variations with tkinter-pypy aren't working. pip install python-tk I'm on Windows with Python 2.7 and can't apt-get . Thanks. 回答1: Well i can see two solutions here: 1) Follow the Docs-Tkinter install for Python (for Windows): Tkinter (and, since Python 3.1, ttk) are

What is the official “preferred” way to install pip and virtualenv systemwide?

醉酒当歌 提交于 2019-11-26 16:59:50
Is it this, which people seem to recommend most often: $ sudo apt-get install python-setuptools $ sudo easy_install pip $ sudo pip install virtualenv Or this, which I got from 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 ... Or something entirely different? Tal Weiss If you can install the latest Python (2.7.9 and up) Pip is now bundled with it. See: https://docs.python.org/2.7//installing/index.html If not : Update (from the

pip/easy_install failure: failed to create process

假装没事ソ 提交于 2019-11-26 16:49:41
问题 After following this article: How do I install pip on Windows? on my Windows system using Enthought Canopy 64 Bit system, I cannot get pip or easy_install to work due to error: pip install requests failed to create process I tried re-installing setuptools, running cmd prompt as admin without any effect. 回答1: When I encountered this, it was because I'd manually renamed the directory python was in. This meant that both setuptools and pip had to be reinstalled. Or, I had to manually rename the

ImportError: No module named Crypto.Cipher

南楼画角 提交于 2019-11-26 15:25:10
问题 When I try to run app.py (Python 3.3, PyCrypto 2.6) my virtualenv keeps returning the error listed above. My import statement is just from Crypto.Cipher import AES . I looked for duplicates and you might say that there are some, but I tried the solutions (although most are not even solutions) and nothing worked. You can see what the files are like for PyCrypto below: 回答1: I had the same problem (though on Linux). The solution was quite simple - add: libraries: - name: pycrypto version: "2.6"

The problem with installing PIL using virtualenv or buildout

这一生的挚爱 提交于 2019-11-26 14:13:06
When I install PIL using easy_install or buildout it installs in such way, that I must do 'import Image', not 'from PIL import Image'. However, if I do "apt-get install python-imaging" or use "pip -E test_pil install PIL", all work fine. Here are examples of how I trying to install PIL using virtualenv: # virtualenv --no-site-packages test_pil # test_pil/bin/easy_install PIL # test_pil/bin/python Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import PIL Traceback (most

Installing SetupTools on 64-bit Windows

孤街浪徒 提交于 2019-11-26 14:01:01
I'm running Python 2.7 on Windows 7 64-bit, and when I run the installer for setuptools it tells me that Python 2.7 is not installed. The specific error message is: `Python Version 2.7 required which was not found in the registry` My installed version of Python is: `Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32` I'm looking at the setuptools site and it doesn't mention any installers for 64-bit Windows. Have I missed something or do I have to install this from source? Apparently (having faced related 64- and 32-bit issues on OS X) there is a bug in the

Easy_install cache downloaded files

半世苍凉 提交于 2019-11-26 13:56:06
问题 Is there a way to configure easy_install to avoid having to download the files again when an installation fails? 回答1: pip (http://pypi.python.org/pypi/pip/) is a drop-in replacement for the easy_install tool and can do that. Just run easy_install pip and set an environment variable PIP_DOWNLOAD_CACHE to the path you want pip to store the files. Note that the cache won't work with dependencies that checkout from a source code repository (like svn/git/hg/bzr). Then use pip install instead of

How to install pip for python 2.6?

蹲街弑〆低调 提交于 2019-11-26 12:30:23
问题 I tried following the instructions from this answer but easy_install-2.6 could not find pip : >sudo easy_install-2.6 pip Processing pip error: Not a recognized archive type: pip How do I install pip for python 2.6? My root need for pip for 2.6 is explained in this thread. 回答1: Just follow the instructions here: Securely download get-pip.py. In the directory you saved get-pip.py , run sudo python2.6 get-pip.py and you'll be all set. This will install pip for Python 2.6, and won't touch your

How can I install various Python libraries in Jython?

心已入冬 提交于 2019-11-26 12:15:40
I know that I can install Jython with Java and that I can use Jython where I use Python. The Jython shell is working fine. In Jython, how can I install libraries like lxml , Scrappy and BeautifulSoup that I'd normally install via pip or easy_install Some Python modules, like lxml , have required components in C. These won't work in Jython. Most Python packages will work fine, and you can install them using the same tools as you use in CPython. This is described in Appendix A of Jython Book : To get setuptools, download ez_setup.py from http://peak.telecommunity.com/dist/ez_setup.py . Then, go