easy-install

easy_install or pip as a limited user?

老子叫甜甜 提交于 2019-11-29 07:00:29
Standard python distutils provides a '--user' option which lets me install a package as a limited user, like this: python setup.py install --user Is there an equivalent for easy_install and pip ? For pip , see User Installs for details, but basically, it's just what you'd expect: pip install --user Foo It's a bit trickier for easy_install . As Ned Deily points out, if you can rely on distribute rather than setuptools , and 0.6.11 or later, you can just use --user the same as pip . But if you need to work with setuptools , or older distribute … see Custom Installation Locations for details (and

Including global package into a virtualenv that has been created with --no-site-packages

两盒软妹~` 提交于 2019-11-29 06:21:47
问题 I'd usually prefer to create virtualenvs with --no-site-packages option for more isolation, and also because default python global packages includes quite a lot of packages, and usually most of them are not needed. However I'd still want to keep a few select packages in global, like PIL or psycopg2. Is there a good way to include them into the virtualenv, that can also be automated easily? 回答1: If you're using virtualenvwrapper and you might be able to use the postmkvirtualenv script to

Python install uninstall easy_install

十年热恋 提交于 2019-11-29 04:29:26
I have two versions of python on my mac: One preinstalled by Apple in /usr/bin One from python.org in /Library/Frameworks/Python.framework/Versions/2.6 easy_install always installs to /usr/bin for some ununderstanable reason So I explicitly now install easy_install in: sh setuptools-0.6c11-py2.6.egg --install-dir=/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages Now I want to easy_install pip AND ....: Searching for pip Best match: pip 0.8 Processing pip-0.8-py2.6.egg pip 0.8 is already the active version in easy-install.pth Installing pip script to /usr/local/bin

Determining version of easy_install/setuptools

人走茶凉 提交于 2019-11-29 02:09:10
问题 I'm trying to install couchapp, which uses easy_install - and is quite explicit in stating a particular version of easy_install/setuptools is needed: 0.6c6. I seem to have easy_install already on my Mac, but there's no command-line arguments to check the version. Instead of just installing a new version over the top, I'd like to see whether it's necessary first. So: Any pointers on how I can see what version of setuptools/easy_install I have installed on my machine? I'm not a Python developer

How to install libxml2 in virtualenv?

喜欢而已 提交于 2019-11-29 01:49:50
I have virtualenv with --no-site-packages option. I'm using scrapy in it. Scrapy uses libxml2 by import libxml2 . How to install libxml2 in virtualenv using pip or easy_install ? pip install ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.9.tar.gz libxml2 is a C library not a python package so you cannot use Pip to install it. Normally it is already installed on almost every Linux distro out there. If you need to install it it's just sudo apt-get install libxml2 If for some reason you absolutely need to have a local install you will need to grab and install the .deb package or the RPM.

Installing psycopg2 (postgresql) in virtualenv on windows

两盒软妹~` 提交于 2019-11-29 01:09:10
I installed psycopg2 in virtualenv using easy_install psycopg2 . I did not see any errors and looks like installation went fine.. there is an egg file created in the site-packages dir for psycopg2.. but when I run import psycopg2 in the interpreter, I am getting following error.. any clue? How can I fix it.. any other way to install psycopg2 in virtualenv.. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build\bdist.win32\egg\psycopg2\__init__.py", line 69, in <module> File "build\bdist.win32\egg\psycopg2\_psycopg.py", line 7, in <module> File "build\bdist.win32

Eggs in path before PYTHONPATH environment variable

末鹿安然 提交于 2019-11-29 01:03:34
问题 If I have packages installed from easy_install , the eggs are prepended to sys.path before the items in the PYTHONPATH variable. For example, if I have an egg package called foo installed as well as a package called foo in the current directory, and then do this: PYTHONPATH="." python >>> import foo This will use the egg version of foo instead of the local directory. Inspecting sys.path shows that eggs are placed before items from PYTHONPATH . This seems broken. Is there any way to override

Installing numpy on Amazon EC2

白昼怎懂夜的黑 提交于 2019-11-28 23:40:23
I am having trouble installing numpy on an Amazon EC2 server. I have tried using easy_install, pip, pip inside a virtual env, pip inside another virtual env using python 2.7... Every time I try, it fails with the error: gcc: internal compiler error: Killed (program cc1) , and then further down the line I get a bunch of python errors, with easy_install I get: ImportError: No module named numpy.distutils , and with pip I get: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128) . The EC2 instance is running kernel 3.4.43-43.43.amzn1.x86_64. Has

Installing Python's easy_install using ez_setup.py from behind a proxy server

こ雲淡風輕ζ 提交于 2019-11-28 23:37:08
Is there a way to install Python's easy_install using ez_setup.py when on a corporate network that uses a proxy server? Currently, I receive a connection timeout: Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg Traceback (most recent call last): File "C:\jsears\python\ez_setup.py", line 278, in <module> main(sys.argv[1:]) File "C:\jsears\python\ez_setup.py", line 210, in main egg = download_setuptools(version, delay=0) File "C:\jsears\python\ez_setup.py", line 158, in download_setuptools src = urllib2.urlopen(url) File "C:\jsears\Python27\lib\urllib2.py

stopping setup.py from installing as egg

柔情痞子 提交于 2019-11-28 20:45:55
问题 How do I stop setup.py from installing a package as an egg? Or even better, how do I easy_install from installing a package as an egg ? sudo python setup.py install The reason being that PyDev is rather picky about packages in egg format... The package I am interested in at the moment is boto . Update: I found the brute force way of doing it: sudo easy_install -m boto cd path/to/boto-xyz.egg sudo mv boto .. sudo rm -rf boto-xyz.egg 回答1: I feel like I'm missing something subtle or important