easy-install

Python's easy_install and custom header/library location

╄→尐↘猪︶ㄣ 提交于 2019-12-04 20:13:11
I am trying to install adns-python using linux and had to recompile adns with some special options, so I can't seem to use easy_install <tarball> as I normally would (py26_default)[mpenning@localhost src]$ easy_install adns-python-1.2.1.tar.gz Processing adns-python-1.2.1.tar.gz Running adns-python-1.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-9cVl4i/adns-python-1.2.1/egg-dist-tmp-vvO8Ms adnsmodule.c:10:18: error: adns.h: No such file or directory adnsmodule.c:31: error: expected specifier-qualifier-list before âadns_stateâ adns.h is installed under /opt/adns/include/adns.h ; how

easy_install M2Crypto failing on Windows platform

爱⌒轻易说出口 提交于 2019-12-04 13:22:48
问题 I am attempting to install M2Crypto on a Windows XP platform. I have Python, easy_install and SWIG installed, but when I attempt to easy_install M2Crypto I get the following: SWIG\_m2crypto.i(31) : Error: Unable to find 'openssl\opensslv.h' SWIG\_m2crypto.i(45) : Error: Unable to find 'openssl\safestack.h' SWIG\_evp.i(12) : Error: Unable to find 'openssl\opensslconf.h' SWIG\_ec.i(7) : Error: Unable to find 'openssl\opensslconf.h' error: Setup script exited with error: command 'swig.exe'

How do I set up a local python library directory / PYTHONPATH?

孤街醉人 提交于 2019-12-04 12:19:46
问题 In the process of trying to write a Python script that uses PIL today, I discovered I don't seem have it on my local machine (OS X 10.5.8, default 2.5 Python install). So I run: easy_install --prefix=/usr/local/python/ pil and it complains a little about /usr/local/python/lib/python2.5/site-packages not yet existing, so I create it, and try again, and get this: TEST FAILED: /usr/local/python//lib/python2.5/site-packages does NOT support .pth files error: bad install directory or PYTHONPATH

pip broken after upgrading

Deadly 提交于 2019-12-04 09:07:20
问题 I did pip install -U easyinstall, and then pip install -U pip to upgrade my pip. However, I get this error now when trying to use pip: root@d8fb98fc3a66:/# which pip /usr/local/bin/pip root@d8fb98fc3a66:/# pip bash: /usr/bin/pip: No such file or directory This is on an ubuntu 12.04 in a docker image. 回答1: One reason can be remembed locations. You can clear the cached locations by issuing following command: hash -r SIDENOTE: Instead of which , using type command, you can see the hashed

sudo required for easy_install pip in OS X Lion?

冷暖自知 提交于 2019-12-04 06:49:24
I'm coming from Snow Leopard at work to a Lion installation at home. I do NOT remember having to: sudo easy_install pip Is that required for Lion? I got errors until I did that, and pip ended up here: [ some@computer ] ~ $ which pip /usr/local/bin//pip Does this mean that I'm going to have to sudo pip install other packages? e.g.: sudo pip install virtualenv sudo pip install virtualenvwrapper I should also note that I'm running XCode 4.3 with the new separate install of the command line tools. So I do NOT have a /Developer path right now on my OS X Lion volume. Yes. Generally you sudo to use

Python - Is there any way to get pip without setuptools?

半城伤御伤魂 提交于 2019-12-04 04:50:47
Seems kinda weird that they'd require a package manager to install a package manager. I'm on Windows BTW. Pip does require setuptools. Pip is really just a wrapper around setuptools to provide a better installer than easy_install and some nicer installation behaviors, plus uninstall, requirements files, etc. Even if you somehow got pip installed without setuptools it still won't run without it. You can use Distribute instead of setuptools : it installs a package called setuptools (it's a fork of the latter). You can install Distribute by downloading and running distribute_setup.py . Update: As

Installing pip on macOS does not work (anymore)

不羁岁月 提交于 2019-12-04 01:57:56
I followed online instructions on how to install pip on macOS (for example this , this , and this ). I all seems to simple, but it's not working for me. My python --version is 2.7.10. When I run sudo easy_install pip I get: $ sudo easy_install pip Password: Searching for pip Reading http://pypi.python.org/simple/pip/ Couldn't find index page for 'pip' (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 pip error: Could not find suitable distribution for Requirement.parse('pip') Any idea

What is the alternative to using --process-dependency-links with pip

安稳与你 提交于 2019-12-04 01:45:36
I am using Python 2.7. I am trying to pip install a repo (on internal github) that has a dependency on another repo (also on internal github). I tried several options but the one that worked was like this: (env)abc$ cat requirements.txt -e git://github.abc.com/abc/abc.git#egg=my_abc --process-dependency-links (env)abc$ pip install -r requirements.txt But I got a warning while running the command line that said: "DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release." I am on pip v7.1.2. What is the right way to do this? You can use PEP 508 URL

How do I forbid easy_install from zipping eggs?

↘锁芯ラ 提交于 2019-12-04 01:43:07
What must I put into distutils.cfg to prevent easy_install from ever installing a zipped egg? The compression is a nice thought, but I like to be able to grep through and debug that code. I pulled in some dependencies with python setup.py develop . A closer look reveals that also accepts the --always-unzip flag. It would just be nice to set that as default. the option is zip-ok, so put the following in your distutils.cfg: [easy_install] # i don't like having zipped files. zip_ok = 0 I doubt there is a setting in distutils.cfg for this, as easy_install is not a part of distutils. But run easy

How does Python keep track of modules installed with eggs?

隐身守侯 提交于 2019-12-04 00:39:08
If I have a module, foo , in Lib/site-packages , I can just import foo and it will work. However, when I install stuff from eggs, I get something like blah-4.0.1-py2.7-win32.egg as a folder, with the module contents inside, yet I still only need do import foo , not anything more complicated. How does Python keep track of eggs? It is not just dirname matching as if I drop that folder into a Python installation without going through dist-utils, it does not find the module. To be clearer: I just installed zope. The folder name is "zope.interface-3.3.0-py2.7-win32.egg". This works: Python 2.7.1