easy-install

Installing dependencies only - setuptools

若如初见. 提交于 2019-12-08 02:03:32
问题 I have a Python script, with several external dependencies, that I wish to distribute to colleagues. However, we will need to modify this script regularly so I don't want to install it per-se (i.e. copy to site-packages ). From what I've seen setuptools seems to do this implicitly. Is there a recommended approach to installing dependencies without installing the application/script itself? 回答1: You probably want to make sure that you and your colleagues use the same dependencies during

Installing M2Crypto on Windows

陌路散爱 提交于 2019-12-07 17:10:50
问题 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

SandboxViolation error when installing statsmodels with easy_install

一笑奈何 提交于 2019-12-07 13:48:14
问题 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

Python Packaging Documentation

末鹿安然 提交于 2019-12-07 08:05:42
问题 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

warnings emitted during 'easy_install'

坚强是说给别人听的谎言 提交于 2019-12-07 05:21:09
问题 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? 回答1: easy_install doesn't like use of __file__ and __path__ not so much because they're dangerous

Python's easy_install and custom header/library location

扶醉桌前 提交于 2019-12-06 16:09:26
问题 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

Best method for managing Jython packages

﹥>﹥吖頭↗ 提交于 2019-12-06 13:15:30
I'm building a Jython program in PyDev and in the process have found need for some packages that are not standard for Jython 2.5 but that are standard for CPython 2.7. To this point, I've been using python's easy_install and incorrectly pointing PyDev to /usr/lib/python2.7/dist-packages. While incorrect, this has worked for the past few months until today when I encountered this problem ; one of the Python 2.7 libs taking prescient over a Jython lib and causing havok. My question is two-fold: What is the proper way to package libraries for Jython. Is it as simple as virtual-env + easy_install?

Python 3.2.3, easy_install, Mac OS X

ⅰ亾dé卋堺 提交于 2019-12-06 12:07:35
I am a windows 7 user, so pardon me for my ignorance. I have been trying to help my friend get easy_install working on her Mac OS X laptop. We managed to get everything working for 2.7 with these commands in the terminal: python distribute_setup.py (which installs "distribute") easy_install We tried the same thing for Python 3.2.3: python3.2 distribute_setup.py easy_install But the package gets installed for python 2.7 instead of 3.2.3. From what I know, this is because easy_install only works with 2.7. On my windows 7, I managed to do all these by going into the command prompt, python32

How to install pip on python (error : No such file or directory)

瘦欲@ 提交于 2019-12-06 09:18:30
I'm trying to Install Django on my Mac so I have to install pip on Python, and I don't know why the instructions I found on internet don't work for me... Here is my problem : sudo easy_install pip sudo: unable to execute /usr/local/bin/easy_install: No such file or directory And I'm always getting that "no such file or directory". Any help would be appreciated. Run the setup script from here then restart and install with pip install django . 来源: https://stackoverflow.com/questions/30146222/how-to-install-pip-on-python-error-no-such-file-or-directory

python setuptools: ImportError: cannot import name Library

假装没事ソ 提交于 2019-12-06 05:46:49
I have a Windows 7 64bit machine and want to install the python package mgrs. I have tried using both easy_install and running python setup.py install in the mgrs directory. Easy_install gives me the error below. C:\Users\farrell>easy_install mgrs Searching for mgrs Reading https://pypi.python.org/simple/mgrs/ Best match: mgrs 1.1.0 Downloading https://pypi.python.org/packages/source/m/mgrs/mgrs-1.1.0.tar.gz#md5 =96e0c00f16d86a3f8b84c2c46cb68b8e Processing mgrs-1.1.0.tar.gz Writing c:\users\farrell\appdata\local\temp\easy_install-lzqjsi\mgrs-1.1.0\setup .cfg Running mgrs-1.1.0\setup.py -q