easy-install

setup.py: restrict the allowable version of the python interpreter

孤者浪人 提交于 2019-11-27 01:41:57
I have a python library. Unfortunately I have not updated it to work with python 3 yet. in its setup.py, I added install_requires=['python<3'], My intent was to not allow this package to be installed / used under python 3, because I know it doesn't (yet) work. I don't think this is the right way to do it, because pip then tries to download and install python 2.7.3 (which is already the installed version!). How should I specify my library dependency on a particular range of python interpreter versions? Should I add a Programming Language :: Python :: 2 :: Only tag? Will this actually prevent

Installing Pillow/PIL on Mavericks

拟墨画扇 提交于 2019-11-27 01:07:33
问题 I'm getting a strange error when trying to install Pillow using pip/easy_install: cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/System/Library/Frameworks/Tcl.framework/Versions/8.5

How to use Python's “easy_install” on Windows … it's not so easy

一个人想着一个人 提交于 2019-11-27 00:33:03
问题 After installing Python 2.7 on Windows XP, then manually setting the %PATH% to python.exe (why won't the python installer do this?), then installing setuptools 0.6c11 (why doesn't the python installer do this?), then manually setting the %PATH% to easy_install.exe (why doesn't the installer do this?), I finally tried to install a python package with easy_install , but easy_install failed when it couldn't install the pywin32 package, which is a dependency. How can I make easy_install work

Why is Python easy_install not working on my Mac?

自古美人都是妖i 提交于 2019-11-26 23:44:11
I have a Mac running Python 2.6. When I try to use easy_install I get this message: /usr/bin/easy_install-2.6:7: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Library/Python/2.6/site-packages is being added to sys.path from pkg_resources import load_entry_point /usr/bin/easy_install-2.6:7: UserWarning: Module site was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyc, but /Library/Python/2.6/site-packages is being added to sys.path

Can I use `pip` instead of `easy_install` for `python setup.py install` dependency resolution?

为君一笑 提交于 2019-11-26 23:41:59
python setup.py install will automatically install packages listed in requires=[] using easy_install . How do I get it to use pip instead? Colonel Panic Yes you can. You can install a package from a tarball or a folder, on the web or your computer. For example: Install from tarball on web pip install https://pypi.python.org/packages/source/r/requests/requests-2.3.0.tar.gz Install from local tarball wget https://pypi.python.org/packages/source/r/requests/requests-2.3.0.tar.gz pip install requests-2.3.0.tar.gz Install from local folder tar -zxvf requests-2.3.0.tar.gz cd requests-2.3.0 pip

ImportError: No module named PIL

坚强是说给别人听的谎言 提交于 2019-11-26 21:18:25
I use this command in the shell to install PIL: easy_install PIL then I run python and type this: import PIL . But I get this error: Traceback (most recent call last): File "<console>", line 1, in <module> ImportError: No module named PIL I've never had such problem, what do you think? On some installs of PIL, You must do import Image instead of import PIL (PIL is in fact not always imported this way). Since import Image works for you, this means that you have in fact installed PIL. Having a different name for the library and the Python module is unusual, but this is what was chosen for (some

easy_install cx_Oracle (python package) on Windows

久未见 提交于 2019-11-26 21:18:14
问题 So I found Help installing cx_Oracle but am still stuck. I downloaded the latest instantclient from oracle, and set ORACLE_HOME to the location of the extracted files (both direct and with a bin folder between the ORACLE_HOME value and the files), but easy_install is popping an error when running setup.py saying it can't locate the Oracle include files. I did notice that only the 11g dll is in the folder, do I need all 3 drivers present for setup to complete? If so, where do I even get them?

Unable to install pip: Permission denied error

时间秒杀一切 提交于 2019-11-26 20:33:13
问题 I am trying to install pip but currently unable to. I navigate to the pip folder and python setup.py install Everything seems to go fine until the very end: Extracting pip-0.8.2-py2.6.egg to /Library/Python/2.6/site-packages Adding pip 0.8.2 to easy-install.pth file Installing pip script to /usr/local/bin error: /usr/local/bin/pip: Permission denied I've also tried easy_install . and attempted to refer to the related thread with no luck: Python install uninstall easy_install Any ideas? 回答1:

pip ignores dependency_links in setup.py

时光总嘲笑我的痴心妄想 提交于 2019-11-26 19:45:09
I have dependency_links in my setup.py: ... dependency_links = ['http://github.com/robot-republic/python-s3/tarball/master.tar.gz#egg=python-s3'], ... But it doesn't work. However install_requires works fine. Maybe there are another method to set up git repo as required for setup.py? Laur Ivan This answer should help. In a nutshell, you need to specify the version (or "dev") for the #egg=python-s3 so it looks like #egg=python-s3-1.0.0 . Updates based on @Cerin's comment: Pip 1.5.x has a flag to enable dependency-links processing: --process-dependency-links . I haven't tested it because I agree

pip issue installing almost any library

喜欢而已 提交于 2019-11-26 19:30:21
I have a difficult time using pip to install almost anything. I'm new to coding, so I thought maybe this is something I've been doing wrong and have opted out to easy_install to get most of what I needed done, which has generally worked. However, now I'm trying to download the nltk library, and neither is getting the job done. I tried entering sudo pip install nltk but got the following response: /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