easy-install

Installing M2Crypto on Windows

走远了吗. 提交于 2019-12-05 19:31:04
I am trying to install M2Crypto on a Windows 7 machine using easy_install. However, I get the following error: 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' failed with exit status 1 Any advice? i tried installing openssl for windows. yossi There is a Windows Installer in the M2Crypto page. Unable to install using easy_install on

SandboxViolation error when installing statsmodels with easy_install

痞子三分冷 提交于 2019-12-05 18:53:37
I tried to install statsmodels Python library on a Fedora 19 system. I used easy_install as follows: easy_install -U statsmodels But I get the following error while installing: error: SandboxViolation: os.open('/root/.matplotlib/tmpvjSAwn', 131266, 384) {} The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the

Pip or easy_install with Python 3.x explode when installing anything using mingw

可紊 提交于 2019-12-05 12:47:25
I had the vcvarsall.bat problem, so I followed the directions here How to use MinGW's gcc compiler when installing Python package using Pip? . Now, when using pip install lxml with Python 3.2.2 on Windows 7 I get the following error: C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python32\include -IC:\Pytho n32\PC -c src/lxml/lxml.etree.c -o build\temp.win32-3.2\Release\src\lxml\lxml.et ree.o -w cc1.exe: error: unrecognized command line option '-mno-cygwin' error: command 'gcc' failed with exit status 1 The entire output: C:\Python32\Scripts>pip-3.2.exe install lxml Downloading/unpacking

Unable to do heroku's Python tutorial within Dropbox folder

梦想与她 提交于 2019-12-05 12:25:54
EDIT2: OK this is weird. (I can't answer my own question, so I just put it as another edit to the question. I think it has something to do with the fact that I tried to do this installation within a Dropbox-synced directory. I got this to work on my Desktop. Can anyone explain why this is the case? Original question: I'm trying to do Heroku's Python setup tutorial (http://devcenter.heroku.com/articles/python), on my Mac OS X (Lion), but I get caught up with the step of creating a virtualenv. So what I did was this in the command line (not using sudo caused permissions error): sudo pip install

Python Packaging Documentation

纵然是瞬间 提交于 2019-12-05 11:06:04
Where is the current reference for packaging python modules with Python 2.x? http://guide.python-distribute.org/ The Hitchhiker’s Guide to Packaging (last update from july 2010) http://docs.python.org/2.7/distutils/index.html distutils: Distributing Python Modules https://python-packaging-user-guide.readthedocs.org/en/latest/ Python Packaging User Guide (fork of hitchhiker guide, alive) I found the above versions. Which one should I follow? My modules are simple. Some Python files, some Python scripts and some templates (django). borntyping The setuptools documentation is (probably) the

warnings emitted during 'easy_install'

主宰稳场 提交于 2019-12-05 10:49:33
When I easy_install some python modules, warnings such as: <some module>: module references __file__ <some module>: module references __path__ <some module>: module MAY be using inspect.trace <some module>: module MAY be using inspect.getsourcefile sometimes get emitted. Where (what package / source file) do these messages come from? Why is referencing __file__ or __path__ considered a bad thing? durin42 easy_install doesn't like use of __file__ and __path__ not so much because they're dangerous, but because packages that use them almost always fail to run out of zipped eggs. easy_install is

ImportError: Entry point ('console_scripts', 'easy_install') not found

…衆ロ難τιáo~ 提交于 2019-12-05 09:06:24
I'm trying to install a package and one of the instructions is the following, but I get an error. easy_install -U distribute pip Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install", line 9, in <module> load_entry_point('distribute', 'console_scripts', 'easy_install')() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-3.4.1-py2.7.egg/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/Library/Frameworks/Python.framework/Versions/2

'easy_install' is not recognized as an in internal or external command, operable program or batch file

半世苍凉 提交于 2019-12-05 01:28:09
I have just downloaded and installed the latest version of Python on my Windows 7 machine. Python 2.7.3 Now I want to install a Twitter library I found online: However when I try to run easy_install tweepy , I get this error message: 'easy_install' is not recognized as an in internal or external command, operable program or batch file. Python has already been placed into my path, as I can invoke the Python program into the command line. Here is a screenshot of my folder where Python is installed. And inside the Tools folder: And inside the scripts folder: You need to: Install easy_install:

Python Subversion wrapper library

馋奶兔 提交于 2019-12-04 22:15:19
问题 In Subversion's documentation there's an example of using Subversion from Python #!/usr/bin/python import svn.fs, svn.core, svn.repos def crawl_filesystem_dir(root, directory): """Recursively crawl DIRECTORY under ROOT in the filesystem, and return a list of all the paths at or below DIRECTORY.""" # Get the directory entries for DIRECTORY. entries = svn.fs.svn_fs_dir_entries(root, directory) When I run this code I get an import error: $ python crawl.py Traceback (most recent call last): File

easy_install with pypy while Python is installed

心不动则不痛 提交于 2019-12-04 20:13:25
问题 I installed PyPy while still having Python 2.7 on my system. How do I install and then use easy_install with PyPy? What is the syntax for distinguishing where I want to install to with easy_install ? Should I set any environment variables for ease of use? I'm on Windows, but these questions seem relevant for all platform... 回答1: You need to install easy_install for pypy manually. It's explained in the answer to this question : Installing Python eggs under PyPy 回答2: An alternative solution is