easy-install

how to run easy_install using a particular python version

情到浓时终转凉″ 提交于 2019-11-28 19:53:47
问题 I have 3 python versions, I want to easy_install Orange using the second version. How can I do this? Unnecessary info: 2.1 in /usr/bin/python 2.6 in /Library/Frameworks/Python.framework/Versions/2.6/bin/python 3.1 in /Library/Frameworks/Python.framework/Versions/3.1/bin/python Answer: Ok found it here (http://peak.telecommunity.com/DevCenter/EasyInstall#multiple-python-versions), "Also, if you're working with Python version 2.4 or higher, you can run Python with -m easy_install to run that

pyzmq missing when running ipython notebook

送分小仙女□ 提交于 2019-11-28 19:43:50
问题 I can run iPython, but when I try to initiate a notebook I get the following error: ~ ipython notebook Traceback (most recent call last): File "/usr/local/bin/ipython", line 8, in <module> load_entry_point('ipython==2.1.0', 'console_scripts', 'ipython')() File "/Library/Python/2.7/site-packages/ipython-2.1.0-py2.7.egg/IPython/__init__.py", line 120, in start_ipython return launch_new_instance(argv=argv, **kwargs) File "/Library/Python/2.7/site-packages/ipython-2.1.0-py2.7.egg/IPython/config

Can a Python package depend on a specific version control revision of another Python package?

本小妞迷上赌 提交于 2019-11-28 18:57:37
Some useful Python packages are broken on pypi, and the only acceptable version is a particular revision in a revision control system. Can that be expressed in setup.py e.g requires = 'svn://example.org/useful.package/trunk@1234' ? You need to do two things. First, require the exact version you want, e.g.: install_requires = "useful.package==1.9dev-r1234" and then include a dependency_links setting specifying where to find it: dependency_links = ["svn://example.org/useful.package/trunk@1234#egg=useful.package-1.9dev-r1234"] Note that the version #egg= part of the dependency_links URL must

Can pip (or setuptools, distribute etc…) list the license used by each installed package?

末鹿安然 提交于 2019-11-28 18:39:46
I'm trying to audit a Python project with a large number of dependencies and while I can manually look up each project's homepage/license terms, it seems like most OSS packages should already contain the license name and version in their metadata. Unfortunately I can't find any options in pip or easy_install to list more than the package name and installed version (via pip freeze). Does anyone have pointers to a tool to list license metadata for Python packages? You can use pkg_resources : import pkg_resources def get_pkg_license(pkgname): """ Given a package reference (as from requirements

ImportError: No module named Crypto.Cipher

岁酱吖の 提交于 2019-11-28 16:26:48
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: Patrick Jordan I had the same problem (though on Linux). The solution was quite simple - add: libraries: - name: pycrypto version: "2.6" to my app.yaml file. Since this worked correctly in the past, I assume this is a new

easy_install launches as a terminal and closes on its own, how to avoid that

三世轮回 提交于 2019-11-28 12:51:34
Trying to install various packages on a Windows 7 64 bit and learned that ActivePython helps (as it includes easy_install among others). It surely seems pretty robust. However I'm trying to easy_install a few packages and its failing. The problem is that the easy_install.exe actually launches in a new terminal and closes on its own, even when there is a problem, how do I avoid that ? Anyone faced this issue ? Perhaps easy_install is trying to relaunch itself as Administrator in a different window which quits immediately after easy_install exits. Try running easy_install from an Administrator

How to re-install lxml?

狂风中的少年 提交于 2019-11-28 09:06:33
I am using python 2,7.5 on mac 10.7.5, beautifulsoup 4.2.1. I am going to parse a xml page using the lxml library, as taught in the beautifulsoup tutorial. However, when I run my code, it shows bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml,xml. Do you need to install a parser library? I am sure that I already installed lxml by all methods: easy_install, pip, port, etc. I tried to add a line to my code to see if lxml is installed or not: import lxml Then python can just successfully go through this code and display the previous error message again,

easy_install libmysqld-dev error :'NoneType' object has no attribute 'clone'

白昼怎懂夜的黑 提交于 2019-11-28 08:45:41
问题 this is the error : (mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ ./bin/easy_install libmysqld-dev Searching for libmysqld-dev Reading http://pypi.python.org/simple/libmysqld-dev/ Couldn't find index page for 'libmysqld-dev' (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 libmysqld-dev Best match: None Traceback (most recent call last): File "./bin/easy_install", line 8, in

Given the name of a Python package, what is the name of the module to import?

别来无恙 提交于 2019-11-28 06:49:02
Does somebody know the logic behind Python modules names vs the name of the actual package used in easy_install? A few (amongst others) example that seem a bit unlogical to me: We do easy_install mysql-python , but the import is in fact import MySQLdb We do easy_install python-memcached , but the import is in fact import memcache (without the trailing d) I didn't find a consistent way of finding the equivalence. For some modules, it took me a lot of browsing to find it. What am I doing wrong? Colonel Panic Regrettably, there's no method to the madness. The name in the package index is

Installing Pillow/PIL on Mavericks

时光毁灭记忆、已成空白 提交于 2019-11-28 05:57:51
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/Headers -I/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/Cellar/freetype/2.5.3