Python setuptools install_requires error - python

I'm using setuptools to create a quick setup.py script to install dependencies for the user. The package only requires numpy and matlibplot. So the code looks something like this:
from setuptools import setup
setup(
name = "somePackageName",
version = "1.0",
packages = ['doc', 'inputs', 'inputs', 'src'],
install_requires = ['distribute == 0.7.3', 'numpy', 'matplotlib']
)
running sudo python setup.py install gives me the following:
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating fabSim.egg-info
writing requirements to fabSim.egg-info/requires.txt
writing fabSim.egg-info/PKG-INFO
writing top-level names to fabSim.egg-info/top_level.txt
writing dependency_links to fabSim.egg-info/dependency_links.txt
writing manifest file 'fabSim.egg-info/SOURCES.txt'
reading manifest file 'fabSim.egg-info/SOURCES.txt'
writing manifest file 'fabSim.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/doc
copying doc/__init__.py -> build/lib.linux-x86_64-2.7/doc
creating build/lib.linux-x86_64-2.7/inputs
copying inputs/__init__.py -> build/lib.linux-x86_64-2.7/inputs
creating build/lib.linux-x86_64-2.7/src
copying src/simulation.py -> build/lib.linux-x86_64-2.7/src
copying src/good.py -> build/lib.linux-x86_64-2.7/src
copying src/producer.py -> build/lib.linux-x86_64-2.7/src
copying src/__init__.py -> build/lib.linux-x86_64-2.7/src
copying src/validate.py -> build/lib.linux-x86_64-2.7/src
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/doc
copying build/lib.linux-x86_64-2.7/doc/__init__.py -> build/bdist.linux-x86_64/egg/doc
creating build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/simulation.py -> build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/good.py -> build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/producer.py -> build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/__init__.py -> build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/validate.py -> build/bdist.linux-x86_64/egg/src
creating build/bdist.linux-x86_64/egg/inputs
copying build/lib.linux-x86_64-2.7/inputs/__init__.py -> build/bdist.linux-x86_64/egg/inputs
byte-compiling build/bdist.linux-x86_64/egg/doc/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/simulation.py to simulation.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/good.py to good.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/producer.py to producer.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/validate.py to validate.pyc
byte-compiling build/bdist.linux-x86_64/egg/inputs/__init__.py to __init__.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/fabSim-1.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing fabSim-1.0-py2.7.egg
removing '/usr/local/lib/python2.7/dist-packages/fabSim-1.0-py2.7.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/fabSim-1.0-py2.7.egg
Extracting fabSim-1.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
fabSim 1.0 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/fabSim-1.0-py2.7.egg
Processing dependencies for fabSim==1.0
Searching for matplotlib
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/
Reading http://matplotlib.org
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/
Reading http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/
Reading http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1/
Best match: matplotlib 1.3.0
Downloading https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.3.0/matplotlib-1.3.0.tar.gz
Processing matplotlib-1.3.0.tar.gz
Writing /tmp/easy_install-xOXtid/matplotlib-1.3.0/setup.cfg
Running matplotlib-1.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-xOXtid/matplotlib-1.3.0/egg-dist-tmp-JFeCc4
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
(Currently using distribute 0.6.28dev-r0 (/usr/lib/python2.7/dist-packages))
error: Setup script exited with 2
My understanding of setuptools is probably off as I expect it to update/install available dependencies from PyPI. Could someone provide additional insight on this?

pip install -U distribute
or
easy_install -U distribute

Related

Installing Basemap in virtualenv

I am using Python 3.6.9 and in a virtual environment and I am trying to install basemap, with no luck.
I have read over and over the installing guidelines and other sources. But the basemap file is never created at directory of the virtual environment: venv/lib/python3.6/site-packages/mpl_toolkits/.
Any help would be appreciated. This is what I do
pip3 install --upgrade --user matplotlib numpy pyproj pyshp OWSLib Pillow
sudo apt install libgeos-dev
sudo apt-get install proj-bin
sudo apt-get install geos
wget https://github.com/matplotlib/basemap/archive/refs/tags/v1.2.2rel.tar.gz
untar
cd geos-3.3.3
export GEOS_DIR=/usr/local
./configure --prefix=$GEOS_DIR
make; make install
cd ..
sudo python3 setup.py install
Then the code output looks like this
checking for GEOS lib in /home/secure ....
checking for GEOS lib in /home/secure/local ....
checking for GEOS lib in /usr ....
GEOS lib (version 3.6.2) found in /usr
running install
/home/secure/.local/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
/home/secure/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py:159: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
/home/secure/.local/lib/python3.6/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning: 0.18ubuntu0.18.04.1 is an invalid version and will not be supported in a future release
PkgResourcesDeprecationWarning,
running bdist_egg
running egg_info
running build_src
build_src
building extension "_geoslib" sources
build_src: building npy-pkg config files
writing lib/basemap.egg-info/PKG-INFO
writing dependency_links to lib/basemap.egg-info/dependency_links.txt
writing namespace_packages to lib/basemap.egg-info/namespace_packages.txt
writing requirements to lib/basemap.egg-info/requires.txt
writing top-level names to lib/basemap.egg-info/top_level.txt
/home/secure/.local/lib/python3.6/site-packages/setuptools/command/egg_info.py:628: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_files_without_manifest'.
Please extend command classes from setuptools instead of distutils.
SetuptoolsDeprecationWarning
reading manifest file 'lib/basemap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README'
warning: no files found matching 'LICENSE_proj4'
warning: no files found matching 'LICENSE_pyshp'
warning: no files found matching 'lib/mpl_toolkits/basemap/pyproj.py'
warning: no files found matching 'lib/mpl_toolkits/basemap/shapefile.py'
adding license file 'LICENSE_data'
adding license file 'LICENSE_epsg'
adding license file 'LICENSE_geos'
writing manifest file 'lib/basemap.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.6/_geoslib.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/mpl_toolkits
copying build/lib.linux-x86_64-3.6/mpl_toolkits/__init__.py -> build/bdist.linux-x86_64/egg/mpl_toolkits
creating build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
creating build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_c.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_i.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_i.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_c.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/epsg -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_l.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/bmng.jpg -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_i.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_f.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/etopo1.jpg -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/UScounties.dbf -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_f.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_f.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_h.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_c.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_l.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_h.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/UScounties.prj -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_i.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_f.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_l.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_c.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_h.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/shadedrelief.jpg -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_h.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_l.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/UScounties.shx -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/UScounties.shp -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/diagnostic.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/proj.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/solar.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/__init__.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/cm.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/test.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/diagnostic.py to diagnostic.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/proj.py to proj.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/solar.py to solar.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/cm.py to cm.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/test.py to test.cpython-36.pyc
creating stub loader for _geoslib.cpython-36m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/_geoslib.py to _geoslib.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/namespace_packages.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
__pycache__._geoslib.cpython-36: module references __file__
mpl_toolkits.basemap.__pycache__.__init__.cpython-36: module references __file__
creating 'dist/basemap-1.2.1-py3.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing basemap-1.2.1-py3.6-linux-x86_64.egg
removing '/usr/local/lib/python3.6/dist-packages/basemap-1.2.1-py3.6-linux-x86_64.egg' (and everything under it)
creating /usr/local/lib/python3.6/dist-packages/basemap-1.2.1-py3.6-linux-x86_64.egg
Extracting basemap-1.2.1-py3.6-linux-x86_64.egg to /usr/local/lib/python3.6/dist-packages
basemap 1.2.1 is already the active version in easy-install.pth
Installed /usr/local/lib/python3.6/dist-packages/basemap-1.2.1-py3.6-linux-x86_64.egg
Processing dependencies for basemap==1.2.1
Searching for six==1.12.0
Best match: six 1.12.0
Adding six 1.12.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for pyshp==2.1.0
Best match: pyshp 2.1.0
Adding pyshp 2.1.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for pyproj==2.5.0
Best match: pyproj 2.5.0
Adding pyproj 2.5.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for numpy==1.16.6
Best match: numpy 1.16.6
Adding numpy 1.16.6 to easy-install.pth file
Installing f2py script to /usr/local/bin
Installing f2py3 script to /usr/local/bin
Installing f2py3.6 script to /usr/local/bin
Using /home/secure/.local/lib/python3.6/site-packages
Searching for matplotlib==3.2.0
Best match: matplotlib 3.2.0
Adding matplotlib 3.2.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for kiwisolver==1.1.0
Best match: kiwisolver 1.1.0
Adding kiwisolver 1.1.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for python-dateutil==2.8.0
Best match: python-dateutil 2.8.0
Adding python-dateutil 2.8.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for cycler==0.10.0
Best match: cycler 0.10.0
Adding cycler 0.10.0 to easy-install.pth file
Using /usr/lib/python3/dist-packages
Searching for pyparsing==2.4.0
Best match: pyparsing 2.4.0
Adding pyparsing 2.4.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for setuptools==59.5.0
Best match: setuptools 59.5.0
Adding setuptools 59.5.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Finished processing dependencies for basemap==1.2.1

How to install Dropbox SDK

here https://www.dropbox.com/developers-v1/core/sdks/python im download SDK and then try to run setup code on windows server 2008 like this:
C:\Users\Administrator>C:\Users\Administrator\AppData\Local\Programs\Python\Pyth
on36-32\python.exe C:\Users\Administrator\Desktop\dropbox-python-sdk-2.2.0\setup
.py install
and then got this in console:
running install
running bdist_egg
running egg_info
writing dropbox.egg-info\PKG-INFO
writing dependency_links to dropbox.egg-info\dependency_links.txt
writing requirements to dropbox.egg-info\requires.txt
writing top-level names to dropbox.egg-info\top_level.txt
warning: manifest_maker: standard file 'setup.py' not found
package init file 'C:/Users/Administrator/AppData/Local/Programs/Python/Python36
-32/dropbox\__init__.py' not found (or not a regular file)
package init file 'C:/Users/Administrator/AppData/Local/Programs/Python/Python36
-32/tests\__init__.py' not found (or not a regular file)
reading manifest file 'dropbox.egg-info\SOURCES.txt'
writing manifest file 'dropbox.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
warning: install_lib: 'build\lib' does not exist -- no Python modules to install
creating build\bdist.win32\egg
creating build\bdist.win32\egg\EGG-INFO
copying dropbox.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying dropbox.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying dropbox.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying dropbox.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
copying dropbox.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\dropbox-2.2.0-py3.6.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing dropbox-2.2.0-py3.6.egg
Removing c:\users\administrator\appdata\local\programs\python\python36-32\lib\si
te-packages\dropbox-2.2.0-py3.6.egg
Copying dropbox-2.2.0-py3.6.egg to c:\users\administrator\appdata\local\programs
\python\python36-32\lib\site-packages
dropbox 2.2.0 is already the active version in easy-install.pth
Installed c:\users\administrator\appdata\local\programs\python\python36-32\lib\s
ite-packages\dropbox-2.2.0-py3.6.egg
Processing dependencies for dropbox==2.2.0
Searching for urllib3==1.21.1
Best match: urllib3 1.21.1
Processing urllib3-1.21.1-py3.6.egg
urllib3 1.21.1 is already the active version in easy-install.pth
Using c:\users\administrator\appdata\local\programs\python\python36-32\lib\site-
packages\urllib3-1.21.1-py3.6.egg
Finished processing dependencies for dropbox==2.2.0
and nothing happened, folders "dropbox" and "tests" still empty
whats wrong?

error: file 'C:\Python27\Tools\Scripts\ftpmirror.py' does not exist

When I execute python setup.py install in Windows 10, I see this output:
C:\Python27\Tools\Scripts>python setup.py install
running install
running build
running build_scripts
creating build
creating build\scripts-2.7
copying and adjusting byteyears.py -> build\scripts-2.7
copying and adjusting checkpyc.py -> build\scripts-2.7
copying and adjusting copytime.py -> build\scripts-2.7
copying and adjusting crlf.py -> build\scripts-2.7
copying and adjusting dutree.py -> build\scripts-2.7
error: file 'C:\Python27\Tools\Scripts\ftpmirror.py' does not exist
I solve this problem very easy. Just add/copy missing file from https://svn.python.org/projects/python/trunk/Tools/scripts/ftpmirror.py to the path C:\Python27\Tools\Scripts and execute
python setup.py install
again.

how do i control to which python to install a package

i'm on win7/64, and have some pythons already, but want to be installing mosek to a new WinPython
>where python
C:\Users\nlab\Downloads\WinPython-64bit-2.7.9.5\python-2.7.9.amd64\python.exe
C:\Python27\python.exe
C:\Program Files (x86)\LilyPond\usr\bin\python.exe
i'm following these instructions
>cd C:\Program Files\Mosek\7\tools\platform\win64x86\python\2
>python setup.py build --build-base c:\Users\nlab install --user
running build
running build_py
creating c:\Users\nlab\lib
creating c:\Users\nlab\lib\mosek
copying mosek\array.py -> c:\Users\nlab\lib\mosek
copying mosek\__init__.py -> c:\Users\nlab\lib\mosek
creating c:\Users\nlab\lib\mosek\fusion
copying mosek\fusion\SolverInfo.py -> c:\Users\nlab\lib\mosek\fusion
copying mosek\fusion\Utils.py -> c:\Users\nlab\lib\mosek\fusion
copying mosek\fusion\__init__.py -> c:\Users\nlab\lib\mosek\fusion
running install
running install_lib
creating C:\Users\nlab\AppData\Roaming\Python
creating C:\Users\nlab\AppData\Roaming\Python\Python27
creating C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages
creating C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek
copying c:\Users\nlab\lib\mosek\array.py -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek
creating C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek\fusion
copying c:\Users\nlab\lib\mosek\fusion\SolverInfo.py -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek\fusion
copying c:\Users\nlab\lib\mosek\fusion\Utils.py -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek\fusion
copying c:\Users\nlab\lib\mosek\fusion\__init__.py -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek\fusion
copying c:\Users\nlab\lib\mosek\__init__.py -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek
byte-compiling C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek\array.py to array.pyc
byte-compiling C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek\fusion\SolverInfo.py to SolverInfo.pyc
byte-compiling C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek\fusion\Utils.py to Utils.pyc
byte-compiling C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek\fusion\__init__.py to __init__.pyc
byte-compiling C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek\__init__.py to __init__.pyc
running install_data
copying C:\Program Files\Mosek\7\tools\platform\win64x86\python\2\..\..\bin\mosek64_7_1.dll -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek
copying C:\Program Files\Mosek\7\tools\platform\win64x86\python\2\..\..\bin\mosekglb64_7_1.dll -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek
copying C:\Program Files\Mosek\7\tools\platform\win64x86\python\2\..\..\bin\mosekxx7_1.dll -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek
copying C:\Program Files\Mosek\7\tools\platform\win64x86\python\2\..\..\bin\libiomp5md.dll -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek
copying C:\Program Files\Mosek\7\tools\platform\win64x86\python\2\..\..\..\..\..\license.pdf -> C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\mosek
running install_egg_info
Writing C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\Mosek-7.1.31-py2.7.egg-info
Please review the MOSEK license conditions in license.pdf
that created and used
C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\
but i want
C:\Users\nlab\Downloads\WinPython-64bit-2.7.9.5\python-2.7.9.amd64\Lib\site-packages\
i tried using WinPython's exe explicitly:
>C:\Users\nlab\Downloads\WinPython-64bit-2.7.9.5\python-2.7.9.amd64\python.exe setup.py build --build-base c:\Users\nlab install --user
running build
running build_py
running install
running install_lib
running install_data
running install_egg_info
Removing C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\Mosek-7.1.31-py2.7.egg-info
Writing C:\Users\nlab\AppData\Roaming\Python\Python27\site-packages\Mosek-7.1.31-py2.7.egg-info
Please review the MOSEK license conditions in license.pdf
but that doesn't seem to help
I believe it is your setup.py options which are causing the error. Specifically the user option will install into a specific directory linked to your user profile
https://docs.python.org/2/install/#alternate-installation-the-user-scheme
, regardless of what's linked to the WinPython. This is for users who do not have write privileges in system directories. If you want to link the install to your WinPython, then run
C:\Users\nlab\Downloads\WinPython-64bit-2.7.9.5\python-2.7.9.amd64\python.exe setup.py install
And if you want to be sure it installs in the correct location, use the --prefix option
https://docs.python.org/2/install/#alternate-installation-windows-the-prefix-scheme
e.g.
python.exe setup.py install --prefix="C:\Users\nlab\Downloads\WinPython-64bit-2.7.9.5\python-2.7.9.amd64\"
... but this shouldn't be necessary as that is just the default prefix associated with this particular WinPython.

easy_install lxml on Python 2.7 on Windows

I'm using python 2.7 on Windows. How come the following error occurs when I try to install [lxml][1] using [setuptools][2]'s easy_install?
C:\>easy_install lxml
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3.3
Downloading http://lxml.de/files/lxml-2.3.3.tgz
Processing lxml-2.3.3.tgz
Running lxml-2.3.3\setup.py -q bdist_egg --dist-dir c:\users\my_user\appdata\local\temp\easy_install-mtrdj2\lxml-2.3.3\egg-dist-tmp-tq8rx4
Building lxml version 2.3.3.
Building without Cython.
ERROR: 'xslt-config' is not recognized as an internal or external command,
operable program or batch file.
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
warning: no files found matching 'lxml.etree.c' under directory 'src\lxml'
warning: no files found matching 'lxml.objectify.c' under directory 'src\lxml'
warning: no files found matching 'lxml.etree.h' under directory 'src\lxml'
warning: no files found matching 'lxml.etree_api.h' under directory 'src\lxml'
warning: no files found matching 'etree_defs.h' under directory 'src\lxml'
warning: no files found matching 'pubkey.asc' under directory 'doc'
warning: no files found matching 'tagpython*.png' under directory 'doc'
warning: no files found matching 'Makefile' under directory 'doc'
error: Setup script exited with error: Unable to find vcvarsall.bat
Downloading the package and running setup.py install also doesn't help:
D:\My Documents\Installs\Dev\Python\lxml\lxml-2.3.3>setup.py install
Building lxml version 2.3.3.
Building without Cython.
ERROR: 'xslt-config' is not recognized as an internal or external command,
operable program or batch file.
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running install
running bdist_egg
running egg_info
writing src\lxml.egg-info\PKG-INFO
writing top-level names to src\lxml.egg-info\top_level.txt
writing dependency_links to src\lxml.egg-info\dependency_links.txt
reading manifest file 'src\lxml.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'lxml.etree.c' under directory 'src\lxml'
warning: no files found matching 'lxml.objectify.c' under directory 'src\lxml'
warning: no files found matching 'lxml.etree.h' under directory 'src\lxml'
warning: no files found matching 'lxml.etree_api.h' under directory 'src\lxml'
warning: no files found matching 'etree_defs.h' under directory 'src\lxml'
warning: no files found matching 'pubkey.asc' under directory 'doc'
warning: no files found matching 'tagpython*.png' under directory 'doc'
warning: no files found matching 'Makefile' under directory 'doc'
writing manifest file 'src\lxml.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\lxml
copying src\lxml\builder.py -> build\lib.win32-2.7\lxml
copying src\lxml\cssselect.py -> build\lib.win32-2.7\lxml
copying src\lxml\doctestcompare.py -> build\lib.win32-2.7\lxml
copying src\lxml\ElementInclude.py -> build\lib.win32-2.7\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win32-2.7\lxml
copying src\lxml\sax.py -> build\lib.win32-2.7\lxml
copying src\lxml\usedoctest.py -> build\lib.win32-2.7\lxml
copying src\lxml\_elementpath.py -> build\lib.win32-2.7\lxml
copying src\lxml\__init__.py -> build\lib.win32-2.7\lxml
creating build\lib.win32-2.7\lxml\html
copying src\lxml\html\builder.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\clean.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\defs.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\diff.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\_dictmixin.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\_diffcommand.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\_html5builder.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\_setmixin.py -> build\lib.win32-2.7\lxml\html
copying src\lxml\html\__init__.py -> build\lib.win32-2.7\lxml\html
creating build\lib.win32-2.7\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py -> build\lib.win32-2.7\lxml\isoschematron
copying src\lxml\etreepublic.pxd -> build\lib.win32-2.7\lxml
copying src\lxml\tree.pxd -> build\lib.win32-2.7\lxml
copying src\lxml\etree_defs.h -> build\lib.win32-2.7\lxml
creating build\lib.win32-2.7\lxml\isoschematron\resources
creating build\lib.win32-2.7\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-2.7\lxml\isoschematron\resources\rng
creating build\lib.win32-2.7\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl
creating build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
error: Unable to find vcvarsall.bat
[1]: http://lxml.de/
[2]: http://pypi.python.org/pypi/setuptools
lxml >= 3.x.x
download one of the MS Windows Installer packages
easy_install "c:/lxml_installer.exe" (credit kobejohn)
MS Windows Installer downloads available for lxml 3.3.5
a list of all binary/egg lxml package downloads.
lxml 2.3.x
there is no windows binary egg for lxml 2.3.3 (2.3.0 is the latest from 2.x.x).
without giving a version number easy_install will download the latest sources,
but you dont have the libxml2 and libxslt installed.
you could install the missing libs or you could try the 2.3 as there are binary eggs for windows:
easy_install lxml==2.3
you can download Unofficial Windows Binaries at:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
e.g. for python 2.7 32bit:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
It is the easiest way in win32.
I ran into the same problem. I don't know about the vcvarsall.bat issue but if you just want to install lxml you can use the graphical installers here:
https://pypi.python.org/pypi/lxml/3.2.3
That worked for me.
The ideal solution (which also works within virtual environments) has been provided here.
Basically, it comes down to downloading a fitting wheel file from here (the "cp" in the filename stands for your Python version) and then simply pip installing it.
It works on my (virtualenv) installation of Python3.3 on Windows 7 64-bit.
You can also use anaconda. Once you have it installed (http://continuum.io/downloads) you can just run conda install lxml to install lxml.

Categories

Resources