I'm referring to this specific Python library: https://github.com/antoinecarme/pyaf
My machine comprises of Anaconda3-4.4.0 with a separate environment which runs Python 3.5 as the pyAF library requires Python 3.5 to work.
I have installed this library on my laptop using the recommended options
on the above Github page, based on the following commands:
pip install scipy pandas sklearn matplotlib pydot dill pathos sqlalchemy
pip install --upgrade git+git://github.com/antoinecarme/pyaf.git
To execute the above, I change the environment on my Github bash to run it on Python 3.5 and I observe the following installation results:
**Dinesh#DESKTOP-O5O752M MINGW64 ~**
$ source activate python35
(python35)
**Dinesh#DESKTOP-O5O752M MINGW64 ~**
$ pip install scipy pandas sklearn matplotlib pydot dill pathos sqlalchemy
Requirement already satisfied: scipy in c:\toolkits\anaconda3-4.4.0\envs\python3 5\lib\site-packages
Requirement already satisfied: pandas in c:\toolkits\anaconda3-4.4.0\envs\python 35\lib\site-packages
Requirement already satisfied: sklearn in c:\toolkits\anaconda3-4.4.0\envs\pytho n35\lib\site-packages
Requirement already satisfied: matplotlib in c:\toolkits\anaconda3-4.4.0\envs\py thon35\lib\site-packages
Requirement already satisfied: pydot in c:\toolkits\anaconda3-4.4.0\envs\python3 5\lib\site-packages
Requirement already satisfied: dill in c:\toolkits\anaconda3-4.4.0\envs\python35 \lib\site-packages
Requirement already satisfied: pathos in c:\toolkits\anaconda3-4.4.0\envs\python 35\lib\site-packages
Requirement already satisfied: sqlalchemy in c:\toolkits\anaconda3-4.4.0\envs\py thon35\lib\site-packages
Requirement already satisfied: numpy>=1.8.2 in c:\toolkits\anaconda3-4.4.0\envs\ python35\lib\site-packages (from scipy)
Requirement already satisfied: python-dateutil>=2 in c:\toolkits\anaconda3-4.4.0 \envs\python35\lib\site-packages (from pandas)
Requirement already satisfied: pytz>=2011k in c:\toolkits\anaconda3-4.4.0\envs\p ython35\lib\site-packages (from pandas)
Requirement already satisfied: scikit-learn in c:\toolkits\anaconda3-4.4.0\envs\ python35\lib\site-packages (from sklearn)
Requirement already satisfied: six>=1.10 in c:\toolkits\anaconda3-4.4.0\envs\pyt hon35\lib\site-packages (from matplotlib)
Requirement already satisfied: cycler>=0.10 in c:\toolkits\anaconda3-4.4.0\envs\ python35\lib\site-packages (from matplotlib)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 in c:\to olkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from matplotlib)
Requirement already satisfied: pyreadline>=1.7.1 in c:\toolkits\anaconda3-4.4.0\ envs\python35\lib\site-packages (from dill)
Requirement already satisfied: pox>=0.2.3 in c:\toolkits\anaconda3-4.4.0\envs\py thon35\lib\site-packages (from pathos)
Requirement already satisfied: ppft>=1.6.4.7 in c:\toolkits\anaconda3-4.4.0\envs \python35\lib\site-packages (from pathos)
Requirement already satisfied: multiprocess>=0.70.5 in c:\toolkits\anaconda3-4.4 .0\envs\python35\lib\site-packages (from pathos)
(python35)
**Dinesh#DESKTOP-O5O752M MINGW64 ~**
$ pip install --upgrade git+git://github.com/antoinecarme/pyaf.git
Collecting git+git://github.com/antoinecarme/pyaf.git
Cloning git://github.com/antoinecarme/pyaf.git to c:\users\dines\appdata\local\temp\pip-_upr_c25-build
Requirement already up-to-date: scipy in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pyaf==1.0)
Collecting pandas (from pyaf==1.0)
Using cached pandas-0.20.3-cp35-cp35m-win_amd64.whl
Requirement already up-to-date: sklearn in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pyaf==1.0)
Requirement already up-to-date: matplotlib in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pyaf==1.0)
Requirement already up-to-date: pydot in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pyaf==1.0)
Requirement already up-to-date: dill in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pyaf==1.0)
Requirement already up-to-date: pathos in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pyaf==1.0)
Collecting sqlalchemy (from pyaf==1.0)
Requirement already up-to-date: numpy>=1.8.2 in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from scipy->pyaf==1.0)
Collecting python-dateutil>=2 (from pandas->pyaf==1.0)
Using cached python_dateutil-2.6.1-py2.py3-none-any.whl
Requirement already up-to-date: pytz>=2011k in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pandas->pyaf==1.0)
Collecting scikit-learn (from sklearn->pyaf==1.0)
Using cached scikit_learn-0.19.0-cp35-cp35m-win_amd64.whl
Requirement already up-to-date: six>=1.10 in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from matplotlib->pyaf==1.0)
Requirement already up-to-date: cycler>=0.10 in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from matplotlib->pyaf==1.0)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 (from matplotlib->pyaf==1.0)
Using cached pyparsing-2.2.0-py2.py3-none-any.whl
Requirement already up-to-date: pyreadline>=1.7.1 in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from dill->pyaf==1.0)
Requirement already up-to-date: ppft>=1.6.4.7 in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pathos->pyaf==1.0)
Requirement already up-to-date: pox>=0.2.3 in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pathos->pyaf==1.0)
Requirement already up-to-date: multiprocess>=0.70.5 in c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages (from pathos->pyaf==1.0)
Installing collected packages: python-dateutil, pandas, sqlalchemy, pyaf, scikit-learn, pyparsing
Found existing installation: python-dateutil 2.6.0
Uninstalling python-dateutil-2.6.0:
Successfully uninstalled python-dateutil-2.6.0
Found existing installation: pandas 0.20.1
Uninstalling pandas-0.20.1:
Successfully uninstalled pandas-0.20.1
Found existing installation: SQLAlchemy 1.1.9
Uninstalling SQLAlchemy-1.1.9:
Successfully uninstalled SQLAlchemy-1.1.9
Found existing installation: pyaf 1.0
Uninstalling pyaf-1.0:
Successfully uninstalled pyaf-1.0
Running setup.py install for pyaf: started
Running setup.py install for pyaf: finished with status 'done'
Found existing installation: scikit-learn 0.18.1
DEPRECATION: Uninstalling a distutils installed project (scikit-learn) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling scikit-learn-0.18.1:
Successfully uninstalled scikit-learn-0.18.1
Found existing installation: pyparsing 2.1.4
Uninstalling pyparsing-2.1.4:
Successfully uninstalled pyparsing-2.1.4
Successfully installed pandas-0.20.3 pyaf-1.0 pyparsing-2.2.0 python-dateutil-2.6.1 scikit-learn-0.19.0 sqlalchemy-1.1.13
Traceback (most recent call last):
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\Scripts\pip-script.py", line 5, in <module>
sys.exit(pip.main())
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\__init__.py", line 249, in main
return command.main(cmd_args)
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\basecommand.py", line 252, in main
pip_version_check(session)
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\utils\outdated.py", line 102, in pip_version_check
installed_version = get_installed_version("pip")
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\utils\__init__.py", line 838, in get_installed_version
working_set = pkg_resources.WorkingSet()
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 644, in __init__
self.add_entry(entry)
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 700, in add_entry
for dist in find_distributions(entry, True):
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1949, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1463, in has_metadata
return self.egg_info and self._has(self._fn(self.egg_info, name))
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1823, in _has
return zip_path in self.zipinfo or zip_path in self._index()
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1703, in zipinfo
return self._zip_manifests.load(self.loader.archive)
File "C:\Toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1643, in load
mtime = os.stat(path).st_mtime
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Toolkits\\anaconda3-4.4.0\\envs\\python35\\lib\\site-packages\\pyaf-1.0-py3.5.egg'
(python35)
With this first method, I can see that there are errors at the end of the output. Hence, I downloaded the entire pyAF package from Github on my desktop and attempted to install the library as follows:
**(python35) C:\Users\dines\Desktop>** cd pyaf-master
**(python35) C:\Users\dines\Desktop\pyaf-master>** python setup.py install
running install
running bdist_egg
running egg_info
writing pyaf.egg-info\PKG-INFO
writing dependency_links to pyaf.egg-info\dependency_links.txt
writing requirements to pyaf.egg-info\requires.txt
writing top-level names to pyaf.egg-info\top_level.txt
package init file 'pyaf\__init__.py' not found (or not a regular file)
package init file 'pyaf\TS\__init__.py' not found (or not a regular file)
package init file 'pyaf\CodeGen\__init__.py' not found (or not a regular file)
package init file 'pyaf\Bench\__init__.py' not found (or not a regular file)
reading manifest file 'pyaf.egg-info\SOURCES.txt'
writing manifest file 'pyaf.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
copying pyaf\ForecastEngine.py -> build\lib\pyaf
copying pyaf\HierarchicalForecastEngine.py -> build\lib\pyaf
copying pyaf\TS\Exogenous.py -> build\lib\pyaf\TS
copying pyaf\TS\Keras_Models.py -> build\lib\pyaf\TS
copying pyaf\TS\Options.py -> build\lib\pyaf\TS
copying pyaf\TS\Perf.py -> build\lib\pyaf\TS
copying pyaf\TS\Plots.py -> build\lib\pyaf\TS
copying pyaf\TS\PredictionIntervals.py -> build\lib\pyaf\TS
copying pyaf\TS\Scikit_Models.py -> build\lib\pyaf\TS
copying pyaf\TS\SignalDecomposition.py -> build\lib\pyaf\TS
copying pyaf\TS\SignalDecomposition_AR.py -> build\lib\pyaf\TS
copying pyaf\TS\SignalDecomposition_Cycle.py -> build\lib\pyaf\TS
copying pyaf\TS\SignalDecomposition_Quant.py -> build\lib\pyaf\TS
copying pyaf\TS\SignalDecomposition_Trend.py -> build\lib\pyaf\TS
copying pyaf\TS\SignalHierarchy.py -> build\lib\pyaf\TS
copying pyaf\TS\Signal_Grouping.py -> build\lib\pyaf\TS
copying pyaf\TS\Signal_Transformation.py -> build\lib\pyaf\TS
copying pyaf\TS\Time.py -> build\lib\pyaf\TS
copying pyaf\TS\TimeSeriesModel.py -> build\lib\pyaf\TS
copying pyaf\TS\Utils.py -> build\lib\pyaf\TS
copying pyaf\CodeGen\TS_CodeGenerator.py -> build\lib\pyaf\CodeGen
copying pyaf\CodeGen\TS_CodeGen_Objects.py -> build\lib\pyaf\CodeGen
copying pyaf\Bench\Artificial.py -> build\lib\pyaf\Bench
copying pyaf\Bench\download_all_stock_prices.py -> build\lib\pyaf\Bench
copying pyaf\Bench\GenericBenchmark.py -> build\lib\pyaf\Bench
copying pyaf\Bench\MComp.py -> build\lib\pyaf\Bench
copying pyaf\Bench\NN3.py -> build\lib\pyaf\Bench
copying pyaf\Bench\stocks_symbol_list.py -> build\lib\pyaf\Bench
copying pyaf\Bench\TS_datasets.py -> build\lib\pyaf\Bench
copying pyaf\Bench\YahooStocks.py -> build\lib\pyaf\Bench
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\pyaf
creating build\bdist.win-amd64\egg\pyaf\Bench
copying build\lib\pyaf\Bench\Artificial.py -> build\bdist.win-amd64\egg\pyaf\Bench
copying build\lib\pyaf\Bench\download_all_stock_prices.py -> build\bdist.win-amd64\egg\pyaf\Bench
copying build\lib\pyaf\Bench\GenericBenchmark.py -> build\bdist.win-amd64\egg\pyaf\Bench
copying build\lib\pyaf\Bench\MComp.py -> build\bdist.win-amd64\egg\pyaf\Bench
copying build\lib\pyaf\Bench\NN3.py -> build\bdist.win-amd64\egg\pyaf\Bench
copying build\lib\pyaf\Bench\stocks_symbol_list.py -> build\bdist.win-amd64\egg\pyaf\Bench
copying build\lib\pyaf\Bench\TS_datasets.py -> build\bdist.win-amd64\egg\pyaf\Bench
copying build\lib\pyaf\Bench\YahooStocks.py -> build\bdist.win-amd64\egg\pyaf\Bench
creating build\bdist.win-amd64\egg\pyaf\CodeGen
copying build\lib\pyaf\CodeGen\TS_CodeGenerator.py -> build\bdist.win-amd64\egg\pyaf\CodeGen
copying build\lib\pyaf\CodeGen\TS_CodeGen_Objects.py -> build\bdist.win-amd64\egg\pyaf\CodeGen
copying build\lib\pyaf\ForecastEngine.py -> build\bdist.win-amd64\egg\pyaf
copying build\lib\pyaf\HierarchicalForecastEngine.py -> build\bdist.win-amd64\egg\pyaf
creating build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Exogenous.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Keras_Models.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Options.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Perf.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Plots.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\PredictionIntervals.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Scikit_Models.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\SignalDecomposition.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\SignalDecomposition_AR.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\SignalDecomposition_Cycle.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\SignalDecomposition_Quant.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\SignalDecomposition_Trend.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\SignalHierarchy.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Signal_Grouping.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Signal_Transformation.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Time.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\TimeSeriesModel.py -> build\bdist.win-amd64\egg\pyaf\TS
copying build\lib\pyaf\TS\Utils.py -> build\bdist.win-amd64\egg\pyaf\TS
byte-compiling build\bdist.win-amd64\egg\pyaf\Bench\Artificial.py to Artificial.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\Bench\download_all_stock_prices.py to download_all_stock_prices.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\Bench\GenericBenchmark.py to GenericBenchmark.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\Bench\MComp.py to MComp.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\Bench\NN3.py to NN3.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\Bench\stocks_symbol_list.py to stocks_symbol_list.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\Bench\TS_datasets.py to TS_datasets.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\Bench\YahooStocks.py to YahooStocks.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\CodeGen\TS_CodeGenerator.py to TS_CodeGenerator.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\CodeGen\TS_CodeGen_Objects.py to TS_CodeGen_Objects.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\ForecastEngine.py to ForecastEngine.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\HierarchicalForecastEngine.py to HierarchicalForecastEngine.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Exogenous.py to Exogenous.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Keras_Models.py to Keras_Models.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Options.py to Options.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Perf.py to Perf.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Plots.py to Plots.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\PredictionIntervals.py to PredictionIntervals.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Scikit_Models.py to Scikit_Models.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\SignalDecomposition.py to SignalDecomposition.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\SignalDecomposition_AR.py to SignalDecomposition_AR.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\SignalDecomposition_Cycle.py to SignalDecomposition_Cycle.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\SignalDecomposition_Quant.py to SignalDecomposition_Quant.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\SignalDecomposition_Trend.py to SignalDecomposition_Trend.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\SignalHierarchy.py to SignalHierarchy.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Signal_Grouping.py to Signal_Grouping.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Signal_Transformation.py to Signal_Transformation.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Time.py to Time.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\TimeSeriesModel.py to TimeSeriesModel.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\pyaf\TS\Utils.py to Utils.cpython-35.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying pyaf.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying pyaf.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying pyaf.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying pyaf.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying pyaf.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\pyaf-1.0-py3.5.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing pyaf-1.0-py3.5.egg
Copying pyaf-1.0-py3.5.egg to c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Adding pyaf 1.0 to easy-install.pth file
Installed c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages\pyaf-1.0-py3.5.egg
Processing dependencies for pyaf==1.0
Searching for SQLAlchemy==1.1.13
Best match: SQLAlchemy 1.1.13
Adding SQLAlchemy 1.1.13 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for pathos==0.2.1
Best match: pathos 0.2.1
Adding pathos 0.2.1 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for dill==0.2.7.1
Best match: dill 0.2.7.1
Adding dill 0.2.7.1 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for pydot==1.2.3
Best match: pydot 1.2.3
Adding pydot 1.2.3 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for matplotlib==2.0.2
Best match: matplotlib 2.0.2
Adding matplotlib 2.0.2 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for sklearn==0.0
Best match: sklearn 0.0
Adding sklearn 0.0 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for pandas==0.20.3
Best match: pandas 0.20.3
Adding pandas 0.20.3 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for scipy==0.19.1
Best match: scipy 0.19.1
Adding scipy 0.19.1 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for ppft==1.6.4.7.1
Best match: ppft 1.6.4.7.1
Adding ppft 1.6.4.7.1 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for pox==0.2.3
Best match: pox 0.2.3
Adding pox 0.2.3 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for multiprocess==0.70.5
Best match: multiprocess 0.70.5
Adding multiprocess 0.70.5 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for pyreadline==2.1
Best match: pyreadline 2.1
Adding pyreadline 2.1 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for pyparsing==2.2.0
Best match: pyparsing 2.2.0
Adding pyparsing 2.2.0 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\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 c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for pytz==2017.2
Best match: pytz 2017.2
Adding pytz 2017.2 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for python-dateutil==2.6.1
Best match: python-dateutil 2.6.1
Adding python-dateutil 2.6.1 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for six==1.10.0
Best match: six 1.10.0
Adding six 1.10.0 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for numpy==1.13.1+mkl
Best match: numpy 1.13.1+mkl
Adding numpy 1.13.1+mkl to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Searching for scikit-learn==0.19.0
Best match: scikit-learn 0.19.0
Adding scikit-learn 0.19.0 to easy-install.pth file
Using c:\toolkits\anaconda3-4.4.0\envs\python35\lib\site-packages
Finished processing dependencies for pyaf==1.0
(python35) C:\Users\dines\Desktop\pyaf-master>
I think the pyAF library has been installed successfully. Now, I try running by importing it on Jupyter with the following code:
import pandas as pd
csvfile_link = "https://raw.githubusercontent.com/antoinecarme/TimeSeriesData/master/ozone-la.csv"
ozone_dataframe = pd.read_csv(csvfile_link);
import datetime
ozone_dataframe['Month'] = ozone_dataframe['Month'].apply(lambda x : datetime.datetime.strptime(x, "%Y-%m"))
ozone_dataframe.head()
%matplotlib inline
ozone_dataframe.plot.line('Month', ['Ozone'], grid = True, figsize=(12, 8))
Then, when I import the following library:
import pyaf.ForecastEngine as autof
lEngine = autof.cForecastEngine()
lEngine.train(ozone_dataframe , 'Month' , 'Ozone', 12);
I get the error pop up saying:
The procedure entry point mkl_dnn_BatchNormalizationCreateBackward_v2_F32
could not be located in the dynamic link library C:\Toolkits\anaconda3-
4.4.0\envs\python35\lib\site-packages\numpy\core\mkl_intel_thread.dll
This error pop up only dissapears when I keep clicking OK button 3 times.
Could anyone please help me on what I need to do to run this library successfully ? I'm not even aware as to what the root cause of this issue is. Please help.
Executing numpy as np and np.show_config()
(python35) C:\Users\dines>python
Python 3.5.3 |Anaconda custom (64-bit)| (default, May 15 2017, 10:43:23) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.show_config()
lapack_mkl_info:
include_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/include']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
library_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win']
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_rt']
blas_mkl_info:
include_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/include']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
library_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win']
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_rt']
blas_opt_info:
include_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/include']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
library_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win']
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_rt']
lapack_opt_info:
include_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/include']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
library_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win']
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_rt']
>>>
(Post my comments as an answer as it is a confirmed solution.)
The problem is that the locally installed MKL package not compatible with numpy. The solution is install numpy using conda install numpy instead of pip install numpy.
To find out the MKL library numpy is linked against, run the following Python script in the activated conda environment,
import numpy as np
np.show_config()
I have a working conda environment with numpy installed. Notice the results show that the MKL library is part of the conda installation which guarantees compatibility:
blas_mkl_info:
libraries = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread']
library_dirs = ['/Users/neurite/Applications/miniconda3/envs/temp/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/Users/neurite/Applications/miniconda3/envs/temp/include']
...
Related
I am using Windows 11 x64, Python 3.11.0 run
pip install transformers
error
Microsoft Windows [Version 10.0.22621.674]
(c) Microsoft Corporation. All rights reserved.
C:\Users\donhu>python
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
C:\Users\donhu>conda install -c huggingface transformers
'conda' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\donhu>pip install transformers
Collecting transformers
Downloading transformers-4.24.0-py3-none-any.whl (5.5 MB)
---------------------------------------- 5.5/5.5 MB 12.5 MB/s eta 0:00:00
Collecting filelock
Using cached filelock-3.8.0-py3-none-any.whl (10 kB)
Collecting huggingface-hub<1.0,>=0.10.0
Using cached huggingface_hub-0.10.1-py3-none-any.whl (163 kB)
Requirement already satisfied: numpy>=1.17 in c:\users\donhu\appdata\local\programs\python\python311\lib\site-packages (from transformers) (1.23.4)
Requirement already satisfied: packaging>=20.0 in c:\users\donhu\appdata\local\programs\python\python311\lib\site-packages (from transformers) (21.3)
Collecting pyyaml>=5.1
Using cached PyYAML-6.0-cp311-cp311-win_amd64.whl (143 kB)
Collecting regex!=2019.12.17
Using cached regex-2022.10.31-cp311-cp311-win_amd64.whl (267 kB)
Requirement already satisfied: requests in c:\users\donhu\appdata\local\programs\python\python311\lib\site-packages (from transformers) (2.28.1)
Collecting tokenizers!=0.11.3,<0.14,>=0.11.1
Downloading tokenizers-0.13.1.tar.gz (358 kB)
---------------------------------------- 358.7/358.7 kB 21.8 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tqdm>=4.27
Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
Collecting typing-extensions>=3.7.4.3
Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\donhu\appdata\local\programs\python\python311\lib\site-packages (from packaging>=20.0->transformers) (3.0.9)
Requirement already satisfied: colorama in c:\users\donhu\appdata\local\programs\python\python311\lib\site-packages (from tqdm>=4.27->transformers) (0.4.6)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\donhu\appdata\local\programs\python\python311\lib\site-packages (from requests->transformers) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\donhu\appdata\local\programs\python\python311\lib\site-packages (from requests->transformers) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\donhu\appdata\local\programs\python\python311\lib\site-packages (from requests->transformers) (1.26.12)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\donhu\appdata\local\programs\python\python311\lib\site-packages (from requests->transformers) (2022.9.24)
Building wheels for collected packages: tokenizers
Building wheel for tokenizers (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for tokenizers (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [51 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\tokenizers
copying py_src\tokenizers\__init__.py -> build\lib.win-amd64-cpython-311\tokenizers
creating build\lib.win-amd64-cpython-311\tokenizers\models
copying py_src\tokenizers\models\__init__.py -> build\lib.win-amd64-cpython-311\tokenizers\models
creating build\lib.win-amd64-cpython-311\tokenizers\decoders
copying py_src\tokenizers\decoders\__init__.py -> build\lib.win-amd64-cpython-311\tokenizers\decoders
creating build\lib.win-amd64-cpython-311\tokenizers\normalizers
copying py_src\tokenizers\normalizers\__init__.py -> build\lib.win-amd64-cpython-311\tokenizers\normalizers
creating build\lib.win-amd64-cpython-311\tokenizers\pre_tokenizers
copying py_src\tokenizers\pre_tokenizers\__init__.py -> build\lib.win-amd64-cpython-311\tokenizers\pre_tokenizers
creating build\lib.win-amd64-cpython-311\tokenizers\processors
copying py_src\tokenizers\processors\__init__.py -> build\lib.win-amd64-cpython-311\tokenizers\processors
creating build\lib.win-amd64-cpython-311\tokenizers\trainers
copying py_src\tokenizers\trainers\__init__.py -> build\lib.win-amd64-cpython-311\tokenizers\trainers
creating build\lib.win-amd64-cpython-311\tokenizers\implementations
copying py_src\tokenizers\implementations\base_tokenizer.py -> build\lib.win-amd64-cpython-311\tokenizers\implementations
copying py_src\tokenizers\implementations\bert_wordpiece.py -> build\lib.win-amd64-cpython-311\tokenizers\implementations
copying py_src\tokenizers\implementations\byte_level_bpe.py -> build\lib.win-amd64-cpython-311\tokenizers\implementations
copying py_src\tokenizers\implementations\char_level_bpe.py -> build\lib.win-amd64-cpython-311\tokenizers\implementations
copying py_src\tokenizers\implementations\sentencepiece_bpe.py -> build\lib.win-amd64-cpython-311\tokenizers\implementations
copying py_src\tokenizers\implementations\sentencepiece_unigram.py -> build\lib.win-amd64-cpython-311\tokenizers\implementations
copying py_src\tokenizers\implementations\__init__.py -> build\lib.win-amd64-cpython-311\tokenizers\implementations
creating build\lib.win-amd64-cpython-311\tokenizers\tools
copying py_src\tokenizers\tools\visualizer.py -> build\lib.win-amd64-cpython-311\tokenizers\tools
copying py_src\tokenizers\tools\__init__.py -> build\lib.win-amd64-cpython-311\tokenizers\tools
copying py_src\tokenizers\__init__.pyi -> build\lib.win-amd64-cpython-311\tokenizers
copying py_src\tokenizers\models\__init__.pyi -> build\lib.win-amd64-cpython-311\tokenizers\models
copying py_src\tokenizers\decoders\__init__.pyi -> build\lib.win-amd64-cpython-311\tokenizers\decoders
copying py_src\tokenizers\normalizers\__init__.pyi -> build\lib.win-amd64-cpython-311\tokenizers\normalizers
copying py_src\tokenizers\pre_tokenizers\__init__.pyi -> build\lib.win-amd64-cpython-311\tokenizers\pre_tokenizers
copying py_src\tokenizers\processors\__init__.pyi -> build\lib.win-amd64-cpython-311\tokenizers\processors
copying py_src\tokenizers\trainers\__init__.pyi -> build\lib.win-amd64-cpython-311\tokenizers\trainers
copying py_src\tokenizers\tools\visualizer-styles.css -> build\lib.win-amd64-cpython-311\tokenizers\tools
running build_ext
running build_rust
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tokenizers
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
C:\Users\donhu>
How to fix it?
I use python 3.10 without conda and try to install fbprophet in order to do time series analysis. Nevertheless, i get this error.
Is anyone has an idea to avoid this problem ? I tried to install bdist_wheel or pystan beside. I tried to install conda. However, nothing change.
Thanks to the person who will answer me :)
Bruce
│ exit code: 1
╰─> [55 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\33646\AppData\Local\Temp\pip-install-ayf6nuuh\fbprophet_7b8991beef76435da2b024d4df8dce33\setup.py", line 122, in <module>
setup(
File "c:\Users\33646\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "c:\Users\33646\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\core.py", line 177, in setup
return run_commands(dist)
File "c:\Users\33646\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\core.py", line 193, in run_commands
dist.run_commands()
File "c:\Users\33646\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
self.run_command(cmd)
...
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_prec_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_prec_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
Output exceeds the size limit. Open the full output data in a text editor
Collecting fbprophet
Using cached fbprophet-0.7.1.tar.gz (64 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: Cython>=0.22 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (0.29.32)
Collecting cmdstanpy==0.9.5
Using cached cmdstanpy-0.9.5-py3-none-any.whl (37 kB)
Collecting pystan>=2.14
Using cached pystan-3.5.0-py3-none-any.whl (13 kB)
Requirement already satisfied: numpy>=1.15.4 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (1.23.0)
Requirement already satisfied: pandas>=1.0.4 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (1.4.3)
Requirement already satisfied: matplotlib>=2.0.0 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (3.5.2)
Collecting LunarCalendar>=0.0.9
Using cached LunarCalendar-0.0.9-py2.py3-none-any.whl (18 kB)
Collecting convertdate>=2.1.2
Using cached convertdate-2.4.0-py3-none-any.whl (47 kB)
Collecting holidays>=0.10.2
Downloading holidays-0.15-py3-none-any.whl (181 kB)
------------------------------------ 181.3/181.3 kB 684.2 kB/s eta 0:00:00
Requirement already satisfied: setuptools-git>=1.2 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (1.2)
Requirement already satisfied: python-dateutil>=2.8.0 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (2.8.2)
Requirement already satisfied: tqdm>=4.36.1 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (4.64.0)
Requirement already satisfied: pymeeus<=1,>=0.3.13 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from convertdate>=2.1.2->fbprophet) (0.5.11)
Requirement already satisfied: korean-lunar-calendar in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from holidays>=0.10.2->fbprophet) (0.2.1)
Collecting hijri-converter
...
Failed to build fbprophet pystan
Installing collected packages: pystan, hijri-converter, convertdate, LunarCalendar, holidays, cmdstanpy, fbprophet
Running setup.py install for pystan: started
Running setup.py install for pystan: finished with status 'error'
Output exceeds the size limit. Open the full output data in a text editor
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_student_t_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_student_t_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_student_t_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multinomial_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multinomial_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multinomial_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\neg_binomial_2_log_glm_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\neg_binomial_2_log_glm_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\normal_id_glm_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\normal_id_glm_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_logistic_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_logistic_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_logistic_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_probit_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_probit_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_probit_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\poisson_log_glm_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\poisson_log_glm_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\wishart_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\wishart_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\wishart_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
creating build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\vectorize
copying pystan\stan\lib\stan_math\stan\math\prim\mat\vectorize\apply_scalar_unary.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\vectorize
creating build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\scal
...
╰─> pystan
note: This is an issue with the package mentioned above, not pip.```
I'm trying to run Python Faust from Docker.
Based on this documentation: https://faust.readthedocs.io/en/latest/userguide/installation.html
I created a simple Docker file:
FROM python:3
ADD ./app/app.py /
RUN pip3 install --upgrade pip
RUN pip install -U faust
RUN pip install "faust[rocksdb]"
RUN pip install "faust[rocksdb,uvloop,fast,redis]"
CMD ["python", "./app.py"]
When I create a docker file I receive an error at the 5th stage (Step 5/7 : RUN pip install "faust[rocksdb]")
---> Running in 1e42a5e50cbe Requirement already satisfied:
faust[rocksdb] in /usr/local/lib/python3.10/site-packages (1.10.4)
Requirement already satisfied: terminaltables<4.0,>=3.1 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (3.1.10)
Requirement already satisfied: click<8.0,>=6.7 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (7.1.2)
Requirement already satisfied: yarl<2.0,>=1.0 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.7.2)
Requirement already satisfied: aiohttp-cors<2.0,>=0.7 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (0.7.0)
Requirement already satisfied: mypy-extensions in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (0.4.3)
Requirement already satisfied: colorclass<3.0,>=2.2 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (2.2.2)
Requirement already satisfied: opentracing<2.0.0,>=1.3.0 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.3.0)
Requirement already satisfied: mode<4.4,>=4.3.2 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (4.3.2)
Requirement already satisfied: venusian<2.0,>=1.1 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.2.0)
Requirement already satisfied: aiohttp<4.0,>=3.5.2 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (3.8.1)
Requirement already satisfied: robinhood-aiokafka<1.2,>=1.1.6 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.1.6)
Requirement already satisfied: croniter>=0.3.16 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.1.0)
Collecting python-rocksdb>=0.6.7 Downloading
python-rocksdb-0.7.0.tar.gz (219 kB) Preparing metadata (setup.py):
started Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: aiosignal>=1.1.2 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (1.2.0) Requirement already
satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/site-packages
(from aiohttp<4.0,>=3.5.2->faust[rocksdb]) (21.2.0) Requirement
already satisfied: frozenlist>=1.1.1 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (1.2.0) Requirement already
satisfied: charset-normalizer<3.0,>=2.0 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (2.0.9) Requirement already
satisfied: multidict<7.0,>=4.5 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (5.2.0) Requirement already
satisfied: async-timeout<5.0,>=4.0.0a3 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (4.0.2) Requirement already
satisfied: python-dateutil in /usr/local/lib/python3.10/site-packages
(from croniter>=0.3.16->faust[rocksdb]) (2.8.2) Requirement already
satisfied: colorlog>=2.9.0 in /usr/local/lib/python3.10/site-packages
(from mode<4.4,>=4.3.2->faust[rocksdb]) (6.6.0) Requirement already
satisfied: setuptools>=25 in /usr/local/lib/python3.10/site-packages
(from python-rocksdb>=0.6.7->faust[rocksdb]) (57.5.0) Requirement
already satisfied: kafka-python<1.5,>=1.4.6 in
/usr/local/lib/python3.10/site-packages (from
robinhood-aiokafka<1.2,>=1.1.6->faust[rocksdb]) (1.4.7) Requirement
already satisfied: idna>=2.0 in
/usr/local/lib/python3.10/site-packages (from
yarl<2.0,>=1.0->faust[rocksdb]) (3.3) Requirement already satisfied:
six>=1.5 in /usr/local/lib/python3.10/site-packages (from
python-dateutil->croniter>=0.3.16->faust[rocksdb]) (1.16.0)
And an ERROR PART:
Building
wheels for collected packages: python-rocksdb Building wheel for
python-rocksdb (setup.py): started ERROR: Command errored out with
exit status 1: command: /usr/local/bin/python -u -c 'import io, os,
sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/setup.py'"'"';
file='"'"'/tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-9_o4ek6z
cwd: /tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/
Complete output (64 lines): running bdist_wheel running build
running build_py creating build creating
build/lib.linux-x86_64-3.10 creating
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/interfaces.py ->
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/errors.py ->
build/lib.linux-x86_64-3.10/rocksdb copying
rocksdb/merge_operators.py -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/init.py -> build/lib.linux-x86_64-3.10/rocksdb
creating build/lib.linux-x86_64-3.10/rocksdb/tests copying
rocksdb/tests/test_memtable.py ->
build/lib.linux-x86_64-3.10/rocksdb/tests copying
rocksdb/tests/test_db.py -> build/lib.linux-x86_64-3.10/rocksdb/tests
copying rocksdb/tests/init.py ->
build/lib.linux-x86_64-3.10/rocksdb/tests copying
rocksdb/tests/test_options.py ->
build/lib.linux-x86_64-3.10/rocksdb/tests running egg_info writing
python_rocksdb.egg-info/PKG-INFO writing dependency_links to
python_rocksdb.egg-info/dependency_links.txt writing requirements to
python_rocksdb.egg-info/requires.txt writing top-level names to
python_rocksdb.egg-info/top_level.txt reading manifest file
'python_rocksdb.egg-info/SOURCES.txt' reading manifest template
'MANIFEST.in' writing manifest file
'python_rocksdb.egg-info/SOURCES.txt' copying rocksdb/_rocksdb.cpp
-> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/rocksdb.pyx -> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/backup.pxd -> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/cache.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/comparator.pxd
-> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/db.pxd -> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/env.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying
rocksdb/filter_policy.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/iterator.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/logger.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/memtablerep.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/merge_operator.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/options.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/slice.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying
rocksdb/slice_transform.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/snapshot.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/status.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/std_memory.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/table_factory.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying
rocksdb/universal_compaction.pxd ->
build/lib.linux-x86_64-3.10/rocksdb creating
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/comparator_wrapper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/filter_policy_wrapper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/memtable_factories.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/merge_operator_wrapper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/slice_transform_wrapper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/utils.hpp -> build/lib.linux-x86_64-3.10/rocksdb/cpp
copying rocksdb/cpp/write_batch_iter_helper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp running build_ext
cythoning rocksdb/_rocksdb.pyx to rocksdb/_rocksdb.cpp
/tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/.eggs/Cython-0.29.26-py3.10-linux-x86_64.egg/Cython/Compiler/Main.py:369:
FutureWarning: Cython directive 'language_level' not set, using 2 for
now (Py2). This will change in a later release! File:
/tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/rocksdb/_rocksdb.pyx
tree = Parsing.p_module(s, pxd, full_module_name) building 'rocksdb._rocksdb' extension creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/rocksdb gcc -pthread
-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.10 -c rocksdb/_rocksdb.cpp -o build/temp.linux-x86_64-3.10/rocksdb/_rocksdb.o -std=c++11 -O3 -Wall
-Wextra -Wconversion -fno-strict-aliasing -fno-rtti rocksdb/_rocksdb.cpp:705:10: fatal error: rocksdb/slice.h: No such
file or directory
705 | #include "rocksdb/slice.h"
| ^~~~~~~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1
---------------------------------------- Building wheel for python-rocksdb (setup.py): finished with status 'error' ERROR:
Failed building wheel for python-rocksdb
Can anyone help me to move on with this? I'd like to use Faust from Docker on Kubernetes.
Read the error message, where it is clearly stated you are missing a header file:
fatal error: rocksdb/slice.h: No such file or directory 705 | #include "rocksdb/slice.h" | ^~~~~~~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1
Accordingly, you'll need to build and install RocksDB. This is separate from the installation of faust[rocksdb] with pip. That simply installs python-rocksdb, the Python interface to the underlying libraries.
There is even a (third-party) RocksDB docker image based on Python 3.7 Slim.
You could use that directly or take some tricks from the Dockerfile for that image.
I'm also getting the same error while installing Twisted.
Here's version info:
Django : 1.9
Python : 3.5
Trying to install latest version of Django-channels
Command used : pip install channels
The error :
running build_ext
building 'twisted.test.raiser' extension error:
[WinError 2] The system cannot find the file specified
(Almost) full error message
.......pip install channels
Collecting channels
Using cached channels-1.1.8-py2.py3-none-any.whl
Collecting daphne~=1.3 (from channels)
Using cached daphne-1.3.0-py2.py3-none-any.whl
Requirement already satisfied: asgiref~=1.1 in g:\django\projectChat\venv\lib\site-packages (from channels
)
Requirement already satisfied: Django>=1.8 in g:\django\projectChat\venv\lib\site-packages (from channels)
Requirement already satisfied: autobahn>=0.18 in g:\django\projectChat\venv\lib\site-packages (from daphne
~=1.3->channels)
Collecting twisted>=17.1 (from daphne~=1.3->channels)
Using cached Twisted-17.9.0.tar.bz2
Requirement already satisfied: six in g:\django\projectChat\venv\lib\site-packages (from asgiref~=1.1->cha
nnels)
Requirement already satisfied: txaio>=2.7.0 in g:\django\projectChat\venv\lib\site-packages (from autobahn
>=0.18->daphne~=1.3->channels)
Requirement already satisfied: zope.interface>=4.0.2 in g:\django\projectChat\venv\lib\site-packages (from
twisted>=17.1->daphne~=1.3->channels)
Requirement already satisfied: constantly>=15.1 in g:\django\projectChat\venv\lib\site-packages (from twis
ted>=17.1->daphne~=1.3->channels)
Requirement already satisfied: incremental>=16.10.1 in g:\django\projectChat\venv\lib\site-packages (from
twisted>=17.1->daphne~=1.3->channels)
Requirement already satisfied: Automat>=0.3.0 in g:\django\projectChat\venv\lib\site-packages (from twiste
d>=17.1->daphne~=1.3->channels)
Requirement already satisfied: hyperlink>=17.1.1 in g:\django\projectChat\venv\lib\site-packages (from twi
sted>=17.1->daphne~=1.3->channels)
Requirement already satisfied: setuptools in g:\django\projectChat\venv\lib\site-packages (from zope.inter
face>=4.0.2->twisted>=17.1->daphne~=1.3->channels)
Requirement already satisfied: attrs in g:\django\projectChat\venv\lib\site-packages (from Automat>=0.3.0-
>twisted>=17.1->daphne~=1.3->channels)
Installing collected packages: twisted, daphne, channels
Running setup.py install for twisted ... error
Complete output from command G:\django\projectChat\venv\Scripts\python.exe -u -c "import setuptools, t
okenize;__file__='C:\\Users\\Mike\\AppData\\Local\\Temp\\pip-build-ngnwgsvg\\twisted\\setup.py';f=getattr(tokenize, 'open'
, open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Use
rs\Mike\AppData\Local\Temp\pip-y5sbi03u-record\install-record.txt --single-version-externally-managed --compile --install-
headers G:\django\projectChat\venv\include\site\python3.5\twisted:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\twisted
copying src\twisted\copyright.py -> build\lib.win-amd64-3.5\twisted
copying src\twisted\plugin.py -> build\lib.win-amd64-3.5\twisted
copying src\twisted\_version.py -> build\lib.win-amd64-3.5\twisted
copying src\twisted\__init__.py -> build\lib.win-amd64-3.5\twisted
copying src\twisted\__main__.py -> build\lib.win-amd64-3.5\twisted
creating build\lib.win-amd64-3.5\twisted\application
copying src\twisted\application\app.py -> build\lib.win-amd64-3.5\twisted\application
copying src\twisted\application\internet.py -> build\lib.win-amd64-3.5\twisted\application
copying src\twisted\application\reactors.py -> build\lib.win-amd64-3.5\twisted\application
copying src\twisted\application\service.py -> build\lib.win-amd64-3.5\twisted\application
copying src\twisted\application\strports.py -> build\lib.win-amd64-3.5\twisted\application
copying src\twisted\application\__init__.py -> build\lib.win-amd64-3.5\twisted\application
creating build\lib.win-amd64-3.5\twisted\conch
copying src\twisted\conch\avatar.py -> build\lib.win-amd64-3.5\twisted\conch
[...]
creating build\lib.win-amd64-3.5\twisted\_threads\test
copying src\twisted\_threads\test\test_convenience.py -> build\lib.win-amd64-3.5\twisted\_threads\test
copying src\twisted\_threads\test\test_memory.py -> build\lib.win-amd64-3.5\twisted\_threads\test
copying src\twisted\_threads\test\test_team.py -> build\lib.win-amd64-3.5\twisted\_threads\test
copying src\twisted\_threads\test\test_threadworker.py -> build\lib.win-amd64-3.5\twisted\_threads\test
copying src\twisted\_threads\test\__init__.py -> build\lib.win-amd64-3.5\twisted\_threads\test
running egg_info
writing dependency_links to src\Twisted.egg-info\dependency_links.txt
writing entry points to src\Twisted.egg-info\entry_points.txt
writing src\Twisted.egg-info\PKG-INFO
writing top-level names to src\Twisted.egg-info\top_level.txt
writing requirements to src\Twisted.egg-info\requires.txt
reading manifest file 'src\Twisted.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.misc' found under directory 'src\twisted'
warning: no previously-included files matching '*.bugfix' found under directory 'src\twisted'
warning: no previously-included files matching '*.doc' found under directory 'src\twisted'
warning: no previously-included files matching '*.feature' found under directory 'src\twisted'
warning: no previously-included files matching '*.removal' found under directory 'src\twisted'
warning: no previously-included files matching 'NEWS' found under directory 'src\twisted'
warning: no previously-included files matching 'README' found under directory 'src\twisted'
warning: no previously-included files matching 'newsfragments' found under directory 'src\twisted'
warning: no previously-included files found matching 'src\twisted\topfiles\CREDITS'
warning: no previously-included files found matching 'src\twisted\topfiles\ChangeLog.Old'
warning: no previously-included files found matching 'pyproject.toml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching 'bin'
no previously-included directories found matching 'admin'
no previously-included directories found matching '.travis'
warning: no previously-included files found matching 'docs\historic\2003'
warning: no previously-included files matching '*' found under directory 'docs\historic\2003'
writing manifest file 'src\Twisted.egg-info\SOURCES.txt'
copying src\twisted\python\_sendmsg.c -> build\lib.win-amd64-3.5\twisted\python
copying src\twisted\python\twisted-completion.zsh -> build\lib.win-amd64-3.5\twisted\python
creating build\lib.win-amd64-3.5\twisted\python\_pydoctortemplates
copying src\twisted\python\_pydoctortemplates\common.html -> build\lib.win-amd64-3.5\twisted\python\_pydoctortemplates
copying src\twisted\python\_pydoctortemplates\index.html -> build\lib.win-amd64-3.5\twisted\python\_pydoctortemplates
copying src\twisted\python\_pydoctortemplates\summary.html -> build\lib.win-amd64-3.5\twisted\python\_pydoctortemplates
copying src\twisted\test\cert.pem.no_trailing_newline -> build\lib.win-amd64-3.5\twisted\test
copying src\twisted\test\key.pem.no_trailing_newline -> build\lib.win-amd64-3.5\twisted\test
copying src\twisted\test\raiser.c -> build\lib.win-amd64-3.5\twisted\test
copying src\twisted\test\raiser.pyx -> build\lib.win-amd64-3.5\twisted\test
copying src\twisted\test\server.pem -> build\lib.win-amd64-3.5\twisted\test
copying src\twisted\internet\iocpreactor\build.bat -> build\lib.win-amd64-3.5\twisted\internet\iocpreactor
copying src\twisted\internet\iocpreactor\notes.txt -> build\lib.win-amd64-3.5\twisted\internet\iocpreactor
creating build\lib.win-amd64-3.5\twisted\internet\iocpreactor\iocpsupport
copying src\twisted\internet\iocpreactor\iocpsupport\acceptex.pxi -> build\lib.win-amd64-3.5\twisted\internet\iocpreactor\
iocpsupport
copying src\twisted\internet\iocpreactor\iocpsupport\connectex.pxi -> build\lib.win-amd64-3.5\twisted\internet\iocpreactor
\iocpsupport
copying src\twisted\internet\iocpreactor\iocpsupport\iocpsupport.c -> build\lib.win-amd64-3.5\twisted\internet\iocpreactor
\iocpsupport
copying src\twisted\internet\iocpreactor\iocpsupport\iocpsupport.pyx -> build\lib.win-amd64-3.5\twisted\internet\iocpreact
or\iocpsupport
copying src\twisted\internet\iocpreactor\iocpsupport\winsock_pointers.c -> build\lib.win-amd64-3.5\twisted\internet\iocpre
actor\iocpsupport
copying src\twisted\internet\iocpreactor\iocpsupport\winsock_pointers.h -> build\lib.win-amd64-3.5\twisted\internet\iocpre
actor\iocpsupport
copying src\twisted\internet\iocpreactor\iocpsupport\wsarecv.pxi -> build\lib.win-amd64-3.5\twisted\internet\iocpreactor\i
ocpsupport
copying src\twisted\internet\iocpreactor\iocpsupport\wsasend.pxi -> build\lib.win-amd64-3.5\twisted\internet\iocpreactor\i
ocpsupport
copying src\twisted\internet\test\_awaittests.py.3only -> build\lib.win-amd64-3.5\twisted\internet\test
copying src\twisted\internet\test\_yieldfromtests.py.3only -> build\lib.win-amd64-3.5\twisted\internet\test
creating build\lib.win-amd64-3.5\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\chain.pem -> build\lib.win-amd64-3.5\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\not-a-certificate -> build\lib.win-amd64-3.5\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing1.pem -> build\lib.win-amd64-3.5\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2-duplicate.pem -> build\lib.win-amd64-3.5\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2.pem -> build\lib.win-amd64-3.5\twisted\internet\test\fake_CAs
copying src\twisted\mail\test\rfc822.message -> build\lib.win-amd64-3.5\twisted\mail\test
copying src\twisted\python\test\_deprecatetests.py.3only -> build\lib.win-amd64-3.5\twisted\python\test
copying src\twisted\words\im\instancemessenger.glade -> build\lib.win-amd64-3.5\twisted\words\im
copying src\twisted\words\xish\xpathparser.g -> build\lib.win-amd64-3.5\twisted\words\xish
running build_ext
building 'twisted.test.raiser' extension
error: [WinError 2] The system cannot find the file specified
----------------------------------------
Command "G:\django\projectChat\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Us
ers\\Mike\\AppData\\Local\\Temp\\pip-build-ngnwgsvg\\twisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f
.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Mike\AppData\Loca
l\Temp\pip-y5sbi03u-record\install-record.txt --single-version-externally-managed --compile --install-headers G:\django\projectChat\venv\include\site\python3.5\twisted" failed with error code 1 in C:\Users\Mike\AppData\Local\Tem
p\pip-build-ngnwgsvg\twisted\
I don't know what i'm missing, could someone help me please, thanks.
You need a working C compiler to install Twisted on platforms for which wheels are not provided. There is no Python 3.5 wheel on PyPI for Twisted (at this time). So you need a working C compiler.
Follow these instructions for installing VS2015 to get a working C compiler so Twisted can build the necessary extension modules and install successfully.
The problem is not regarding the need for Visual C++ 14.0 or whatsoever. It is concerned with the installation of Twisted. I was able to fix this problem after trying for weeks together.
To install the correct version of Twisted visit this link. (Found this on a similar question's answer, I'm not sure of the writer to give rightful credits).
The above-mentioned link displays several versions of Twisted. You should download the one corresponding to your python version. For instance, if your python version is 3.5, you should proceed with downloading cp35m-win32.whl (For Windows only) and so forth.
Further, open Command prompt, go to the downloaded path activate your virtual environment and pip install the downloaded file.
This shall fix your issue.
I had a similar problem... I was only able to fix it by downloading Visual Studio Build tools and installing the Visual C++ Build Tools, Windows 10 SDK, and VC++ 2015.3 v14
Microsoft Visual C++ is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
I'm trying to install pip on a Mac (OS X Lion). It doesn't seem to work. I use sudo and prompted for password.
$ sudo curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 85929 100 85929 0 0 63833 0 0:00:01 0:00:01 --:--:-- 99339
Downloading/unpacking pip
Downloading pip-1.2.tar.gz (94Kb): 94Kb downloaded
Running setup.py egg_info for package pip
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Installing collected packages: pip
Running setup.py install for pip
error: could not create '/Library/Python/2.7/site-packages/pip': Permission denied
Complete output from command /usr/bin/python -c "import setuptools;__file__='/Users/kristoffernolgren/build/pip/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/pip-snSujv-record/install-record.txt:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/pip
copying pip/__init__.py -> build/lib/pip
copying pip/__main__.py -> build/lib/pip
copying pip/backwardcompat.py -> build/lib/pip
copying pip/basecommand.py -> build/lib/pip
copying pip/baseparser.py -> build/lib/pip
copying pip/download.py -> build/lib/pip
copying pip/exceptions.py -> build/lib/pip
copying pip/index.py -> build/lib/pip
copying pip/locations.py -> build/lib/pip
copying pip/log.py -> build/lib/pip
copying pip/req.py -> build/lib/pip
copying pip/runner.py -> build/lib/pip
copying pip/status_codes.py -> build/lib/pip
copying pip/util.py -> build/lib/pip
creating build/lib/pip/commands
copying pip/commands/__init__.py -> build/lib/pip/commands
copying pip/commands/bundle.py -> build/lib/pip/commands
copying pip/commands/completion.py -> build/lib/pip/commands
copying pip/commands/freeze.py -> build/lib/pip/commands
copying pip/commands/help.py -> build/lib/pip/commands
copying pip/commands/install.py -> build/lib/pip/commands
copying pip/commands/search.py -> build/lib/pip/commands
copying pip/commands/uninstall.py -> build/lib/pip/commands
copying pip/commands/unzip.py -> build/lib/pip/commands
copying pip/commands/zip.py -> build/lib/pip/commands
creating build/lib/pip/vcs
copying pip/vcs/__init__.py -> build/lib/pip/vcs
copying pip/vcs/bazaar.py -> build/lib/pip/vcs
copying pip/vcs/git.py -> build/lib/pip/vcs
copying pip/vcs/mercurial.py -> build/lib/pip/vcs
copying pip/vcs/subversion.py -> build/lib/pip/vcs
running install_lib
creating /Library/Python/2.7/site-packages/pip
error: could not create '/Library/Python/2.7/site-packages/pip': Permission denied
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/Users/kristoffernolgren/build/pip/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/pip-snSujv-record/install-record.txt failed with error code 1
Storing complete log in /Users/kristoffernolgren/.pip/pip.log
The error log mentioned at the bottom.
------------------------------------------------------------
run on Wed Sep 5 10:42:27 2012
Downloading/unpacking pip
Getting page http://pypi.python.org/simple/pip
URLs to search for versions for pip:
* http://pypi.python.org/simple/pip/
Getting page http://www.pip-installer.org
Getting page http://pip.openplans.org
Analyzing links from page http://pypi.python.org/simple/pip/
Found link http://pypi.python.org/packages/source/p/pip/pip-1.0.1.tar.gz#md5=28dcc70225e5bf925532abc5b087a94b (from http://pypi.python.org/simple/pip/), version: 1.0.1
Found link http://pypi.python.org/packages/source/p/pip/pip-0.6.tar.gz#md5=083ff408ca5314cf0561ff79a048cd9a (from http://pypi.python.org/simple/pip/), version: 0.6
Found link http://pypi.python.org/packages/source/p/pip/pip-0.8.tar.gz#md5=468d9adc309f33ad51cee38f0d455429 (from http://pypi.python.org/simple/pip/), version: 0.8
Found link http://pypi.python.org/packages/source/p/pip/pip-0.8.1.tar.gz#md5=5d40614774781b118dd3f10c0d038cbc (from http://pypi.python.org/simple/pip/), version: 0.8.1
Found link http://pypi.python.org/packages/source/p/pip/pip-0.5.tar.gz#md5=63eed8673e40628534cc0aa9c98e8f3d (from http://pypi.python.org/simple/pip/), version: 0.5
Found link http://pypi.python.org/packages/source/p/pip/pip-0.2.tar.gz#md5=9eda07c8be7105aa774c7eb51c023294 (from http://pypi.python.org/simple/pip/), version: 0.2
Found link http://pypi.python.org/packages/source/p/pip/pip-0.2.1.tar.gz#md5=d2af655c1a87e03799442d045c1d6743 (from http://pypi.python.org/simple/pip/), version: 0.2.1
Found link http://pypi.python.org/packages/source/p/pip/pip-0.7.tar.gz#md5=8d4b4f7266fe0808569182e6832d74ac (from http://pypi.python.org/simple/pip/), version: 0.7
Found link http://pypi.python.org/packages/source/p/pip/pip-0.8.2.tar.gz#md5=df1eca0abe7643d92b5222240bed15f6 (from http://pypi.python.org/simple/pip/), version: 0.8.2
Found link http://pypi.python.org/packages/source/p/pip/pip-0.7.1.tar.gz#md5=420c83ad67bdcb542f772eb64392cce6 (from http://pypi.python.org/simple/pip/), version: 0.7.1
Found link http://pypi.python.org/packages/source/p/pip/pip-1.2.tar.gz#md5=99e44d1d7f88b182459e7c19c45aee9f (from http://pypi.python.org/simple/pip/), version: 1.2
Found link http://pypi.python.org/packages/source/p/pip/pip-0.6.2.tar.gz#md5=9a43e0a2ce8833069f41c347932bdb25 (from http://pypi.python.org/simple/pip/), version: 0.6.2
Found link http://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#md5=62a9f08dd5dc69d76734568a6c040508 (from http://pypi.python.org/simple/pip/), version: 1.1
Found link http://pypi.python.org/packages/source/p/pip/pip-0.5.1.tar.gz#md5=d4bdaa5f5f5bf8c6263ace75a0882232 (from http://pypi.python.org/simple/pip/), version: 0.5.1
Found link http://pypi.python.org/packages/source/p/pip/pip-0.8.3.tar.gz#md5=0603337a81f83df2b1d2f1151565efac (from http://pypi.python.org/simple/pip/), version: 0.8.3
Found link http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49 (from http://pypi.python.org/simple/pip/), version: 1.0.2
Found link http://pypi.python.org/packages/source/p/pip/pip-0.7.2.tar.gz#md5=cfe73090aaa0d3b0c104179a627859d1 (from http://pypi.python.org/simple/pip/), version: 0.7.2
Found link http://pypi.python.org/packages/source/p/pip/pip-1.0.tar.gz#md5=327fc4a03df189506966e15021730550 (from http://pypi.python.org/simple/pip/), version: 1.0
Found link http://pypi.python.org/packages/source/p/pip/pip-0.3.1.tar.gz#md5=78102ddbb040a183dd361b5d432cdf88 (from http://pypi.python.org/simple/pip/), version: 0.3.1
Found link http://pypi.python.org/packages/source/p/pip/pip-0.3.tar.gz#md5=8fccb5b49c6377cbfb1949ccd7be43b3 (from http://pypi.python.org/simple/pip/), version: 0.3
Found link http://pypi.python.org/packages/source/p/pip/pip-0.4.tar.gz#md5=b45714d04f8fd38fe8e3d4c7600b91a2 (from http://pypi.python.org/simple/pip/), version: 0.4
Found link http://pypi.python.org/packages/source/p/pip/pip-0.6.3.tar.gz#md5=0602fa9179cfaa98e41565d4a581d98c (from http://pypi.python.org/simple/pip/), version: 0.6.3
Found link http://pypi.python.org/packages/source/p/pip/pip-0.6.1.tar.gz#md5=7560e3055c66afb99ac4a7892389a237 (from http://pypi.python.org/simple/pip/), version: 0.6.1
Skipping link http://www.pip-installer.org (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://pip.openplans.org (from http://pypi.python.org/simple/pip/); not a file
Skipping link https://github.com/pypa/pip/issues/ (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://bitbucket.org/ianb/pip/issues/ (from http://pypi.python.org/simple/pip/); not a file
Skipping link https://raw.github.com/pypa/pip/master/contrib/get-pip.py (from http://pypi.python.org/simple/pip/); unknown archive format: .py
Skipping link http://www.python.org/dev/peps/pep-0381/ (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://oss.openplans.org/pip/ (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://www.virtualenv.org (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://www.doughellmann.com/projects/virtualenvwrapper/ (from http://pypi.python.org/simple/pip/); not a file
Skipping link file:// (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://www.pip-installer.org/ (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://ionelmc.wordpress.com/ (from http://pypi.python.org/simple/pip/); not a file
Skipping link https://github.com/pypa/pip (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://travis-ci.org/pypa/pip (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://groups.google.com/group/python-virtualenv?hl=en (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://pip.openplans.org/requirement-format.html (from http://pypi.python.org/simple/pip/); unknown archive format: .html
Skipping link https://github.com/pypa/pip/raw/master/contrib/get-pip.py (from http://pypi.python.org/simple/pip/); unknown archive format: .py
Skipping link http://pypi.python.org/mirrors (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://trac.openplans.org/poacheggs/ (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://virtualenv.openplans.org (from http://pypi.python.org/simple/pip/); not a file
Skipping link http://peak.telecommunity.com/DevCenter/EasyInstall (from http://pypi.python.org/simple/pip/); not a file
Found link https://github.com/pypa/pip/tarball/develop#egg=pip-dev (from http://pypi.python.org/simple/pip/), version: dev
Analyzing links from page http://www.pip-installer.org/en/latest/index.html
Skipping link http://www.pip-installer.org/en/latest/_static/nature.css (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .css
Skipping link http://www.pip-installer.org/en/latest/_static/pygments.css (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .css
Skipping link http://www.pip-installer.org/en/latest/index.html (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/installing.html (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/index.html#pip (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://pypi.python.org/pypi (from http://www.pip-installer.org/en/latest/index.html); not a file
Skipping link http://www.pip-installer.org/en/latest/installing.html#prerequisites (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/installing.html#using-the-installer (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/installing.html#alternative-installation-procedures (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/usage.html (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/usage.html#install-packages (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/usage.html#uninstall-packages (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/usage.html#searching-for-packages (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/usage.html#bundles (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/requirements.html (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/requirements.html#freezing-requirements (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/requirements.html#the-requirements-file-format (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/configuration.html (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/configuration.html#examples (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/configuration.html#config-files (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/configuration.html#environment-variables (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/configuration.html#configuration-options (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/other-tools.html (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/other-tools.html#using-pip-with-virtualenv (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/other-tools.html#using-pip-with-buildout (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/other-tools.html#using-pip-with-the-user-scheme (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/other-tools.html#command-line-completion (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/contributing.html (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/contributing.html#release-schedule (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/contributing.html#contributing-with-code (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/contributing.html#running-the-tests (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/contributing.html#contributing-with-tests (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/contributing.html#contributing-with-bug-reports (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/contributing.html#contributing-with-ideas (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/news.html (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/news.html#changelog (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/glossary.html (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://www.pip-installer.org/en/latest/index.html#community (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .html
Skipping link http://sphinx.pocoo.org/ (from http://www.pip-installer.org/en/latest/index.html); not a file
Skipping link http://readthedocs.org/projects/pip/?fromdocs=pip (from http://www.pip-installer.org/en/latest/index.html); not a file
Skipping link http://readthedocs.org/docs/pip/en/latest/ (from http://www.pip-installer.org/en/latest/index.html); not a file
Skipping link http://readthedocs.org/docs/pip/en/1.0.1/ (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .1
Skipping link http://readthedocs.org/docs/pip/en/1.0/ (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .0
Skipping link http://readthedocs.org/docs/pip/en/0.8.3/ (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .3
Skipping link http://readthedocs.org/docs/pip/en/0.7.2/ (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .2
Skipping link http://readthedocs.org/docs/pip/en/0.6.1/ (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .1
Skipping link http://readthedocs.org/docs/pip/en/0.5/ (from http://www.pip-installer.org/en/latest/index.html); unknown archive format: .5
Analyzing links from page http://www.pip-installer.org/en/latest/
Skipping link http://www.pip-installer.org/en/latest/ (from http://www.pip-installer.org/en/latest/); not a file
Skipping link http://www.pip-installer.org/en/latest/#pip (from http://www.pip-installer.org/en/latest/); not a file
Skipping link http://www.pip-installer.org/en/latest/#community (from http://www.pip-installer.org/en/latest/); not a file
Using version 1.2 (newest of versions: 1.2, 1.1, 1.0.2, 1.0.1, 1.0, 0.8.3, 0.8.2, 0.8.1, 0.8, 0.7.2, 0.7.1, 0.7, 0.6.3, 0.6.2, 0.6.1, 0.6, 0.5.1, 0.5, 0.4, 0.3.1, 0.3, 0.2.1, 0.2, dev)
Downloading from URL http://pypi.python.org/packages/source/p/pip/pip-1.2.tar.gz#md5=99e44d1d7f88b182459e7c19c45aee9f (from http://pypi.python.org/simple/pip/)
Running setup.py egg_info for package pip
running egg_info
creating pip-egg-info/pip.egg-info
writing pip-egg-info/pip.egg-info/PKG-INFO
writing top-level names to pip-egg-info/pip.egg-info/top_level.txt
writing dependency_links to pip-egg-info/pip.egg-info/dependency_links.txt
writing entry points to pip-egg-info/pip.egg-info/entry_points.txt
writing manifest file 'pip-egg-info/pip.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/pip.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
writing manifest file 'pip-egg-info/pip.egg-info/SOURCES.txt'
Installing collected packages: pip
Running setup.py install for pip
Running command /usr/bin/python -c "import setuptools;__file__='/Users/kristoffernolgren/build/pip/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/pip-snSujv-record/install-record.txt
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/pip
copying pip/__init__.py -> build/lib/pip
copying pip/__main__.py -> build/lib/pip
copying pip/backwardcompat.py -> build/lib/pip
copying pip/basecommand.py -> build/lib/pip
copying pip/baseparser.py -> build/lib/pip
copying pip/download.py -> build/lib/pip
copying pip/exceptions.py -> build/lib/pip
copying pip/index.py -> build/lib/pip
copying pip/locations.py -> build/lib/pip
copying pip/log.py -> build/lib/pip
copying pip/req.py -> build/lib/pip
copying pip/runner.py -> build/lib/pip
copying pip/status_codes.py -> build/lib/pip
copying pip/util.py -> build/lib/pip
creating build/lib/pip/commands
copying pip/commands/__init__.py -> build/lib/pip/commands
copying pip/commands/bundle.py -> build/lib/pip/commands
copying pip/commands/completion.py -> build/lib/pip/commands
copying pip/commands/freeze.py -> build/lib/pip/commands
copying pip/commands/help.py -> build/lib/pip/commands
copying pip/commands/install.py -> build/lib/pip/commands
copying pip/commands/search.py -> build/lib/pip/commands
copying pip/commands/uninstall.py -> build/lib/pip/commands
copying pip/commands/unzip.py -> build/lib/pip/commands
copying pip/commands/zip.py -> build/lib/pip/commands
creating build/lib/pip/vcs
copying pip/vcs/__init__.py -> build/lib/pip/vcs
copying pip/vcs/bazaar.py -> build/lib/pip/vcs
copying pip/vcs/git.py -> build/lib/pip/vcs
copying pip/vcs/mercurial.py -> build/lib/pip/vcs
copying pip/vcs/subversion.py -> build/lib/pip/vcs
running install_lib
creating /Library/Python/2.7/site-packages/pip
error: could not create '/Library/Python/2.7/site-packages/pip': Permission denied
Complete output from command /usr/bin/python -c "import setuptools;__file__='/Users/kristoffernolgren/build/pip/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/pip-snSujv-record/install-record.txt:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/pip
copying pip/__init__.py -> build/lib/pip
copying pip/__main__.py -> build/lib/pip
copying pip/backwardcompat.py -> build/lib/pip
copying pip/basecommand.py -> build/lib/pip
copying pip/baseparser.py -> build/lib/pip
copying pip/download.py -> build/lib/pip
copying pip/exceptions.py -> build/lib/pip
copying pip/index.py -> build/lib/pip
copying pip/locations.py -> build/lib/pip
copying pip/log.py -> build/lib/pip
copying pip/req.py -> build/lib/pip
copying pip/runner.py -> build/lib/pip
copying pip/status_codes.py -> build/lib/pip
copying pip/util.py -> build/lib/pip
creating build/lib/pip/commands
copying pip/commands/__init__.py -> build/lib/pip/commands
copying pip/commands/bundle.py -> build/lib/pip/commands
copying pip/commands/completion.py -> build/lib/pip/commands
copying pip/commands/freeze.py -> build/lib/pip/commands
copying pip/commands/help.py -> build/lib/pip/commands
copying pip/commands/install.py -> build/lib/pip/commands
copying pip/commands/search.py -> build/lib/pip/commands
copying pip/commands/uninstall.py -> build/lib/pip/commands
copying pip/commands/unzip.py -> build/lib/pip/commands
copying pip/commands/zip.py -> build/lib/pip/commands
creating build/lib/pip/vcs
copying pip/vcs/__init__.py -> build/lib/pip/vcs
copying pip/vcs/bazaar.py -> build/lib/pip/vcs
copying pip/vcs/git.py -> build/lib/pip/vcs
copying pip/vcs/mercurial.py -> build/lib/pip/vcs
copying pip/vcs/subversion.py -> build/lib/pip/vcs
running install_lib
creating /Library/Python/2.7/site-packages/pip
error: could not create '/Library/Python/2.7/site-packages/pip': Permission denied
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/Users/kristoffernolgren/build/pip/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/pip-snSujv-record/install-record.txt failed with error code 1
Exception information:
Traceback (most recent call last):
File "/var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/unpacker-h4sW4t-scratchdir/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/unpacker-h4sW4t-scratchdir/pip/commands/install.py", line 228, in run
requirement_set.install(install_options, global_options)
File "/var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/unpacker-h4sW4t-scratchdir/pip/req.py", line 1093, in install
requirement.install(install_options, global_options)
File "/var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/unpacker-h4sW4t-scratchdir/pip/req.py", line 566, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/unpacker-h4sW4t-scratchdir/pip/__init__.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/Users/kristoffernolgren/build/pip/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/3_/tp_3vp9966dc65phynpzl04h0000gn/T/pip-snSujv-record/install-record.txt failed with error code 1
You are running the curl (download) command under sudo, but the python process itself is running without elevated privileges.
Run it like this instead:
$ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
$ sudo python get-pip.py
Alternatively, use the sudo command on the python part of the pipe instead:
$ curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python
I met the same question.
And I fix it by the following steps:
Download the get-pip.py script from this url https://pip.pypa.io/en/stable/installing/#upgrading-pip
In terminal use this command : sudo python get-pip.py
Yahoo! Successfully installed!
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python
Might be because you don't have permission to python folder. Please try this, it worked for me.
$ sudo chown -R $USER /Library/Python/2.7