easy-install

How to install libxml2 in virtualenv?

五迷三道 提交于 2019-11-27 16:15:05
问题 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 ? 回答1: pip install ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.9.tar.gz 回答2: 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

pip/easy_install failure: failed to create process

懵懂的女人 提交于 2019-11-27 14:37:23
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. 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 python directory to what it had been previously. It will help after changing the PATH to python in

Why am I getting the error: command 'llvm-gcc-4.2' failed with exit status 1

旧时模样 提交于 2019-11-27 13:13:11
问题 I am setting up os X 10.7. I am using the default install of Python: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ I use a Python based package manager called easy_install. Easy_install seems to not be able to find the compiler. EDIT: When I tried to install MySQL-python I got this error: $ sudo easy_install MySQL-python Password: Searching for MySQL-python Reading http://pypi.python.org/simple/MySQL-python/ Reading http://sourceforge.net/projects/mysql-python/ Reading http

How to install pip for python 2.6?

℡╲_俬逩灬. 提交于 2019-11-27 09:12:50
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 . 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 version 2.7 installation. Find below the steps to install pip on Python 2.6.X: $ curl https://bootstrap

Easy_install cache downloaded files

邮差的信 提交于 2019-11-27 07:51:58
Is there a way to configure easy_install to avoid having to download the files again when an installation fails? ionelmc 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 easy_install Here is my solution using pip, managing even installation of binary packages and usable

PIL Installation Fails missing:stdarg.h [duplicate]

醉酒当歌 提交于 2019-11-27 07:24:14
问题 Possible Duplicate: Installing Python Imaging Library (PIL) on Snow Leopard with updated Python 2.6.2 Runing MAC 10.7.2 While trying to install PIL, after resolving many gcc issues, the installation exits with this line: /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory i'm using this line for install: env ARCHFLAGS="-arch i386 -arch x86_64" easy_install PIL full output: WARNING: '' not a valid package name; please use only.-separated package

How to install virtualenv without using sudo?

点点圈 提交于 2019-11-27 06:34:11
I have easy_install and pip . I had many errors on my Linux Mint 12 , I just re-installed it and I want to install everything from scratch again. This is one of the errors that I had. I received an interesting answer there: Stop using su and sudo to run virtualenv. You need to run virtualenv as your normal user. You have created the virtualenv with sudo which is why you are getting these errors. So how to install virtualenv without using sudo ? Can i use pip or easy_install without using sudo ? Or is there another way? itsafire This solution is suitable in cases where no virtualenv is

virtualenv, mysql-python, pip: anyone know how? [duplicate]

会有一股神秘感。 提交于 2019-11-27 05:06:31
问题 This question already has answers here : pip install mysql-python fails with EnvironmentError: mysql_config not found (20 answers) Closed 6 years ago . I'm trying to install the mysql bindings in a virtualenv. I'd prefer to use pip or easy_install. pip gives me the following error: File "setup_posix.py", line 24, in mysql_config raise EnvironmentError("%s not found" % (mysql_config.path,)) EnvironmentError: mysql_config not found easy_install either gets a 404 from sourceforge or gives me a

How can I install Python modules programmatically / through a Python script?

孤街醉人 提交于 2019-11-27 04:37:32
Can I download and install Python modules from PyPi strictly inside a script, without using a shell at all ? I use a non-standard Python environment, Autodesk Maya's Python interpreter. This does not come with "easy_install," and there is no "shell," only a python script interpreter invoked by the main Maya executable. Copying and pasting ez_setup.py's contents into the script editor window and running it correctly installs an easy_install somewhere into Maya's directory, but the script incorrectly records the Python interpreter as "...maya.exe" instead of "...mayapy.exe" Furthermore, using

PIP install a Python Package without a setup.py file?

て烟熏妆下的殇ゞ 提交于 2019-11-27 03:17:06
问题 I'm trying to figure out how I can install a python package that doesn't have a setup.py file with pip. (package in question is http://code.google.com/p/django-google-analytics/) Normally I would just checkout the code from the repo and symlink into my site-packages, but I'm trying to get my whole environment frozen into a pip requirements file for easy deployment and testing. Any ideas? 回答1: You can't. PIP installs Python packages. That's not a Python package. I've heard that the Django