So this is what I get when I try to pip install hyde in a virtualenv in Windows. How come this is happening and how do I solve it?
C:\Users\s3z\Desktop\My Dropbox\Art_website>Scripts\activate
(Art_website) C:\Users\s3z\Desktop\My Dropbox\3ambi_website>pip install hyde
Downloading/unpacking hyde
Downloading hyde-0.8.4.tar.gz (1.3Mb): 1.3Mb downloaded
Running setup.py egg_info for package hyde
Downloading/unpacking argparse (from hyde)
Downloading argparse-1.2.1.tar.gz (69Kb): 69Kb downloaded
Running setup.py egg_info for package argparse
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.orig' found anywhere in distribution
warning: no previously-included files matching '*.rej' found anywhere in distribution
no previously-included directories found matching 'doc\_build'
no previously-included directories found matching 'env24'
no previously-included directories found matching 'env25'
no previously-included directories found matching 'env26'
no previously-included directories found matching 'env27'
Downloading/unpacking commando (from hyde)
Downloading commando-0.1.2a.tar.gz
Running setup.py egg_info for package commando
Downloading/unpacking jinja2 (from hyde)
Downloading Jinja2-2.6.tar.gz (389Kb): 389Kb downloaded
Running setup.py egg_info for package jinja2
warning: no previously-included files matching '*' found under directory 'docs\_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
Downloading/unpacking pyYAML (from hyde)
Downloading PyYAML-3.10.tar.gz (241Kb): 241Kb downloaded
Running setup.py egg_info for package pyYAML
Downloading/unpacking markdown (from hyde)
Downloading Markdown-2.1.1.zip (341Kb): 341Kb downloaded
Running setup.py egg_info for package markdown
Downloading/unpacking smartypants (from hyde)
Downloading smartypants-1.6.0.3.tar.gz
Running setup.py egg_info for package smartypants
Downloading/unpacking pygments (from hyde)
Downloading Pygments-1.5.tar.gz (3.7Mb): 3.7Mb downloaded
Running setup.py egg_info for package pygments
Downloading/unpacking typogrify-hyde (from hyde)
Downloading hyde-setup
Running setup.py egg_info for package typogrify-hyde
warning: no files found matching '*' under directory 'docs'
Installing collected packages: hyde, argparse, commando, jinja2, pyYAML, markdown, smartypants, pygments, typogr
Running setup.py install for hyde
Installing hyde-script.py script to C:\Users\s3z\Desktop\My Dropbox\Art_website\Scripts
Installing hyde.exe script to C:\Users\s3z\Desktop\My Dropbox\Art_website\Scripts
Running setup.py install for argparse
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.orig' found anywhere in distribution
warning: no previously-included files matching '*.rej' found anywhere in distribution
no previously-included directories found matching 'doc\_build'
no previously-included directories found matching 'env24'
no previously-included directories found matching 'env25'
no previously-included directories found matching 'env26'
no previously-included directories found matching 'env27'
Running setup.py install for commando
Running setup.py install for jinja2
warning: no previously-included files matching '*' found under directory 'docs\_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
Running setup.py install for pyYAML
checking if libyaml is compilable
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\build\pyYAML\setup.py", line 344, in <module>
'test': test,
File "C:\Python27\Lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\Lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\lib\site-packages\distribute-0.6.24-py2.7.egg\setu
n run
return _install.run(self)
File "C:\Python27\Lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\Python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\Lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\Python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\build\pyYAML\setup.py", line 171, in run
_build_ext.run(self)
File "C:\Python27\Lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\build\pyYAML\setup.py", line 213, in build_extensi
with_ext = self.check_extension_availability(ext)
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\build\pyYAML\setup.py", line 239, in check_extensi
depends=ext.depends)
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 469, in compile
self.initialize()
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 379, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 295, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
Complete output from command "C:\Users\s3z\Desktop\My Dropbox\Art_website\Scripts\python.exe" -c "impo
ious\\Desktop\\My Dropbox\\Art_website\\build\\pyYAML\\setup.py';exec(compile(open(__file__).read().replace('\
ll --single-version-externally-managed --record c:\users\s3z\appdata\local\temp\pip-yffhnx-record\install-re
aeious\Desktop\My Dropbox\Art_website\include\site\python2.7":
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\yaml
copying lib\yaml\composer.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\constructor.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\cyaml.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\dumper.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\emitter.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\error.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\events.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\loader.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\nodes.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\parser.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\reader.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\representer.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\resolver.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\scanner.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\serializer.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\tokens.py -> build\lib.win-amd64-2.7\yaml
copying lib\yaml\__init__.py -> build\lib.win-amd64-2.7\yaml
running build_ext
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
checking if libyaml is compilable
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\build\pyYAML\setup.py", line 344, in <module>
'test': test,
File "C:\Python27\Lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\Lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\lib\site-packages\distribute-0.6.24-py2.7.egg\setuptoo
n
return _install.run(self)
File "C:\Python27\Lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\Python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\Lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\Python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\build\pyYAML\setup.py", line 171, in run
_build_ext.run(self)
File "C:\Python27\Lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\build\pyYAML\setup.py", line 213, in build_extensions
with_ext = self.check_extension_availability(ext)
File "C:\Users\s3z\Desktop\My Dropbox\Art_website\build\pyYAML\setup.py", line 239, in check_extension_a
depends=ext.depends)
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 469, in compile
self.initialize()
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 379, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 295, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
----------------------------------------
Command "C:\Users\s3z\Desktop\My Dropbox\Art_website\Scripts\python.exe" -c "import setuptools;__file__='C
\\Art_website\\build\\pyYAML\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'e
nally-managed --record c:\users\s3z\appdata\local\temp\pip-yffhnx-record\install-record.txt --install-header
\Art_website\include\site\python2.7" failed with error code 1 in C:\Users\s3z\Desktop\My Dropbox\3ambi_web
Storing complete log in C:\Users\s3z\AppData\Roaming\pip\pip.log
(Art_website) C:\Users\s3z\Desktop\My Dropbox\3ambi_website>
Related
Here the full log of pip3 install lightgbm==3.3.3.
me % pip3 install lightgbm==3.3.3
Collecting lightgbm==3.3.3
Using cached lightgbm-3.3.3.tar.gz (1.5 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: wheel in /opt/homebrew/lib/python3.10/site-packages (from lightgbm==3.3.3) (0.37.1)
Collecting numpy
Using cached numpy-1.23.5-cp310-cp310-macosx_11_0_arm64.whl (13.4 MB)
Collecting scipy
Using cached scipy-1.9.3-cp310-cp310-macosx_12_0_arm64.whl (28.5 MB)
Collecting scikit-learn!=0.22.0
Downloading scikit_learn-1.1.3-cp310-cp310-macosx_12_0_arm64.whl (7.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.7/7.7 MB 4.7 MB/s eta 0:00:00
Collecting threadpoolctl>=2.0.0
Downloading threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting joblib>=1.0.0
Using cached joblib-1.2.0-py3-none-any.whl (297 kB)
Building wheels for collected packages: lightgbm
Building wheel for lightgbm (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [86 lines of output]
running bdist_wheel
/opt/homebrew/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib
creating build/lib/lightgbm
copying lightgbm/callback.py -> build/lib/lightgbm
copying lightgbm/compat.py -> build/lib/lightgbm
copying lightgbm/plotting.py -> build/lib/lightgbm
copying lightgbm/__init__.py -> build/lib/lightgbm
copying lightgbm/engine.py -> build/lib/lightgbm
copying lightgbm/dask.py -> build/lib/lightgbm
copying lightgbm/basic.py -> build/lib/lightgbm
copying lightgbm/libpath.py -> build/lib/lightgbm
copying lightgbm/sklearn.py -> build/lib/lightgbm
running egg_info
writing lightgbm.egg-info/PKG-INFO
writing dependency_links to lightgbm.egg-info/dependency_links.txt
writing requirements to lightgbm.egg-info/requires.txt
writing top-level names to lightgbm.egg-info/top_level.txt
reading manifest file 'lightgbm.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'build'
warning: no files found matching '*.so' under directory 'lightgbm'
warning: no files found matching '*.so' under directory 'compile'
warning: no files found matching '*.dll' under directory 'compile/Release'
warning: no files found matching '*.dll' under directory 'compile/windows/x64/DLL'
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
warning: no previously-included files found matching 'compile/external_libs/compute/.git'
adding license file 'LICENSE'
writing manifest file 'lightgbm.egg-info/SOURCES.txt'
copying lightgbm/VERSION.txt -> build/lib/lightgbm
installing to build/bdist.macosx-13-arm64/wheel
running install
INFO:LightGBM:Starting to compile the library.
INFO:LightGBM:Starting to compile with CMake.
Traceback (most recent call last):
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 95, in silent_call
subprocess.check_call(cmd, stderr=log, stdout=log)
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cmake'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 334, in <module>
setup(name='lightgbm',
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/opt/homebrew/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 335, in run
self.run_command('install')
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 248, in run
compile_cpp(use_mingw=self.mingw, use_gpu=self.gpu, use_cuda=self.cuda, use_mpi=self.mpi,
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 198, in compile_cpp
silent_call(cmake_cmd, raise_error=True, error_msg='Please install CMake and all required dependencies first')
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 99, in silent_call
raise Exception("\n".join((error_msg, LOG_NOTICE)))
Exception: Please install CMake and all required dependencies first
The full version of error log was saved into /Users/me/LightGBM_compilation.log
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lightgbm
Running setup.py clean for lightgbm
Failed to build lightgbm
Installing collected packages: threadpoolctl, numpy, joblib, scipy, scikit-learn, lightgbm
Running setup.py install for lightgbm ... error
error: subprocess-exited-with-error
× Running setup.py install for lightgbm did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running install
/opt/homebrew/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
INFO:LightGBM:Starting to compile the library.
INFO:LightGBM:Starting to compile with CMake.
Traceback (most recent call last):
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 95, in silent_call
subprocess.check_call(cmd, stderr=log, stdout=log)
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cmake'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 334, in <module>
setup(name='lightgbm',
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 248, in run
compile_cpp(use_mingw=self.mingw, use_gpu=self.gpu, use_cuda=self.cuda, use_mpi=self.mpi,
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 198, in compile_cpp
silent_call(cmake_cmd, raise_error=True, error_msg='Please install CMake and all required dependencies first')
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 99, in silent_call
raise Exception("\n".join((error_msg, LOG_NOTICE)))
Exception: Please install CMake and all required dependencies first
The full version of error log was saved into /Users/me/LightGBM_compilation.log
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lightgbm
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
There is a workaround for this?
When you run pip install lightgbm and see this message in logs:
Building wheels for collected packages: lightgbm
it means that there is not a pre-compiled binary (i.e. wheel) available matching your platform (operating system + architecture + Python version), and that LightGBM needs to be built from source.
lightgbm is a Python package wrapping lib_lightgbm, a C++ library with a C API. So "built from source" for lightgbm means compiling that C/C++ code, which for LightGBM requires:
C and C++ compilers
the CMake build system
an installation of OpenMP
Those components are the "CMake and all required dependencies" referred to in the error message.
On macOS, you should already have a C/C++ compiler installed (clang) by default. To get CMake and OpenMP, run the following.
brew install cmake libomp
NOTE: lightgbm v3.3.3 and older does not support the newest version of OpenMP available as of this writing (v15.x). That was fixed in microsoft/LightGBM#5563. If you end up with OpenMP >=15.0 and lightgbm>=4.0 is not yet available from PyPI, either downgrade OpenMP or build a development version of lightgbm (see "Install from GitHub" in the docs).
I am quite new to Python, so maybe this is something quite dumb. I tried to install the Flask module in PyCharm, first in the preference window, later in the python console (but the built in).
I am on a MacBook with the newest OS, using Python 3.9. The error message in the python console is the following:
$ pip3 install Flask
Collecting Flask
Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Requirement already satisfied: click>=5.1 in ./venv/lib/python3.9/site-packages (from Flask) (7.1.2)
Collecting itsdangerous>=0.24
Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting Jinja2>=2.10.1
Using cached Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
Collecting MarkupSafe>=0.23
Using cached MarkupSafe-1.1.1.tar.gz (19 kB)
Collecting Werkzeug>=0.15
Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Building wheels for collected packages: MarkupSafe
Building wheel for MarkupSafe (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/path/to/folder/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py'"'"'; __file__='"'"'/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-wheel-inl8hwcr
cwd: /private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/
Complete output (79 lines):
/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11-x86_64-3.9
creating build/lib.macosx-11-x86_64-3.9/markupsafe
copying src/markupsafe/_constants.py -> build/lib.macosx-11-x86_64-3.9/markupsafe
copying src/markupsafe/__init__.py -> build/lib.macosx-11-x86_64-3.9/markupsafe
copying src/markupsafe/_native.py -> build/lib.macosx-11-x86_64-3.9/markupsafe
copying src/markupsafe/_compat.py -> build/lib.macosx-11-x86_64-3.9/markupsafe
running egg_info
writing src/MarkupSafe.egg-info/PKG-INFO
writing dependency_links to src/MarkupSafe.egg-info/dependency_links.txt
writing top-level names to src/MarkupSafe.egg-info/top_level.txt
reading manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
writing manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
copying src/markupsafe/_speedups.c -> build/lib.macosx-11-x86_64-3.9/markupsafe
running build_ext
building 'markupsafe._speedups' extension
creating build/temp.macosx-11-x86_64-3.9
creating build/temp.macosx-11-x86_64-3.9/src
creating build/temp.macosx-11-x86_64-3.9/src/markupsafe
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl#1.1/include -I/usr/local/opt/sqlite/include -I/Users//Users/path/to/folder/venv/include -I/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/markupsafe/_speedups.c -o build/temp.macosx-11-x86_64-3.9/src/markupsafe/_speedups.o
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py", line 105, in <module>
run_setup(True)
File "/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py", line 53, in run_setup
setup(
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users//Users/path/to/folder/venv/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py", line 36, in run
build_ext.run(self)
File "/Users//Users/path/to/folder/venv/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 66, in run
_build_ext.run(self)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py", line 42, in build_extension
build_ext.build_extension(self, ext)
File "/Users//Users/path/to/folder/venv/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 178, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 529, in build_extension
objects = self.compiler.compile(sources,
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/unixccompiler.py", line 117, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/spawn.py", line 66, in spawn
if _cfg_target_split > [int(x) for x in cur_target.split('.')]:
AttributeError: 'int' object has no attribute 'split'
----------------------------------------
ERROR: Failed building wheel for MarkupSafe
Running setup.py clean for MarkupSafe
Failed to build MarkupSafe
Installing collected packages: MarkupSafe, Werkzeug, Jinja2, itsdangerous, Flask
Running setup.py install for MarkupSafe ... error
ERROR: Command errored out with exit status 1:
command: /Users//Users/path/to/folder/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py'"'"'; __file__='"'"'/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-record-86v7atd3/install-record.txt --single-version-externally-managed --compile --install-headers /Users//Users/path/to/folder/venv/include/site/python3.9/MarkupSafe
cwd: /private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/
Complete output (81 lines):
/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.macosx-11-x86_64-3.9
creating build/lib.macosx-11-x86_64-3.9/markupsafe
copying src/markupsafe/_constants.py -> build/lib.macosx-11-x86_64-3.9/markupsafe
copying src/markupsafe/__init__.py -> build/lib.macosx-11-x86_64-3.9/markupsafe
copying src/markupsafe/_native.py -> build/lib.macosx-11-x86_64-3.9/markupsafe
copying src/markupsafe/_compat.py -> build/lib.macosx-11-x86_64-3.9/markupsafe
running egg_info
writing src/MarkupSafe.egg-info/PKG-INFO
writing dependency_links to src/MarkupSafe.egg-info/dependency_links.txt
writing top-level names to src/MarkupSafe.egg-info/top_level.txt
reading manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
writing manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
copying src/markupsafe/_speedups.c -> build/lib.macosx-11-x86_64-3.9/markupsafe
running build_ext
building 'markupsafe._speedups' extension
creating build/temp.macosx-11-x86_64-3.9
creating build/temp.macosx-11-x86_64-3.9/src
creating build/temp.macosx-11-x86_64-3.9/src/markupsafe
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl#1.1/include -I/usr/local/opt/sqlite/include -I/Users//Users/path/to/folder/venv/include -I/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/markupsafe/_speedups.c -o build/temp.macosx-11-x86_64-3.9/src/markupsafe/_speedups.o
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py", line 105, in <module>
run_setup(True)
File "/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py", line 53, in run_setup
setup(
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/path/to/folder/venv/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/install.py", line 546, in run
self.run_command('build')
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py", line 36, in run
build_ext.run(self)
File "/Users/path/to/folder/venv/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 66, in run
_build_ext.run(self)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py", line 42, in build_extension
build_ext.build_extension(self, ext)
File "/Users/path/to/folder/venv/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 178, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 529, in build_extension
objects = self.compiler.compile(sources,
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/unixccompiler.py", line 117, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/local/Cellar/python#3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/spawn.py", line 66, in spawn
if _cfg_target_split > [int(x) for x in cur_target.split('.')]:
AttributeError: 'int' object has no attribute 'split'
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/path/to/folder/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py'"'"'; __file__='"'"'/private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-install-sb0tfj2q/markupsafe_e3db55149f5e41369ae6e06e7eb56406/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/cj/q_3ynbn564962bgf9614pgpc0000gn/T/pip-record-86v7atd3/install-record.txt --single-version-externally-managed --compile --install-headers /Users/path/to/folder/venv/include/site/python3.9/MarkupSafe Check the logs for full command output.
(venv)
(I censored the path in this code block, everything else is original)
With googling I found different solutions, like downgrading setuptools to 21.2.1 for example, installing python wheel. I did not find MarkupSafe Wheels.
But nothing helped, even trying to install flask by easy_install was unsuccessful.
Maybe someone encountered the same problem and can help me or has any idea?
"Downgrading" to Python 3.8 solved this problem as flask does not support Python 3.9. Thanks for helping # sahasrara62 and # A DUBEY!
Steps I've tried so far:
create the virtual environment.
python3.4 -m venv [venv_name_here]
enter the virtual environment.
cd [venv_name_here]
activate the virtual environment.
source bin/activate
install setuptools.
pip install --upgrade setuptools
install pyparser.
pip install --upgrade pyparser
Output:
Downloading/unpacking pyparser
Downloading pyparser-1.0.tar.gz
Running setup.py (path:[path-to-venv]/build/pyparser/setup.py) egg_info for package pyparser
Downloading/unpacking parse==1.6.5 (from pyparser)
Downloading parse-1.6.5.tar.gz
Running setup.py (path:[path-to-venv]/build/parse/setup.py) egg_info for package parse
Installing collected packages: pyparser, parse
Running setup.py install for pyparser
Could not find .egg-info directory in install record for pyparser
Running setup.py install for parse
Could not find .egg-info directory in install record for parse==1.6.5 (from pyparser)
Successfully installed pyparser parse
Cleaning up..
install cffi.
pip install --upgrade cffi
Output:
Downloading/unpacking cffi
Downloading cffi-1.11.5.tar.gz (438kB): 438kB downloaded
Running setup.py (path:[path-to-venv]/build/cffi/setup.py) egg_info for package cffi
Downloading/unpacking pycparser (from cffi)
Downloading pycparser-2.18.tar.gz (245kB): 245kB downloaded
Running setup.py (path:[path-to-venv]/build/pycparser/setup.py) egg_info for package pycparser
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'
Installing collected packages: cffi, pycparser
Running setup.py install for cffi
building '_cffi_backend' extension
gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/local/lib/libffi-3.1/include -I[path-to-venv]/include -I/usr/local/include/python3.4m -c c/_cffi_backend.c -o build/temp.linux-i686-3.4/c/_cffi_backend.o
gcc -pthread -shared build/temp.linux-i686-3.4/c/_cffi_backend.o -L$(libdir) -lffi -o build/lib.linux-i686-3.4/_cffi_backend.cpython-34m.so
Could not find .egg-info directory in install record for cffi
Running setup.py install for pycparser
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'
Build the lexing/parsing tables
Could not find .egg-info directory in install record for pycparser (from cffi)
Successfully installed cffi pycparser
Cleaning up...
install cryptography.
pip install --upgrade cryptography
Output:
Downloading/unpacking cryptography
Downloading cryptography-2.2.2.tar.gz (443kB): 443kB downloaded
Running setup.py (path:[path-to-venv]/build/cryptography/setup.py) egg_info for package cryptography
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
Downloading/unpacking idna>=2.1 (from cryptography)
Downloading idna-2.6-py2.py3-none-any.whl (56kB): 56kB downloaded
Downloading/unpacking asn1crypto>=0.21.0 (from cryptography)
Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101kB): 101kB downloaded
Downloading/unpacking six>=1.4.1 (from cryptography)
Downloading six-1.11.0-py2.py3-none-any.whl
Installing collected packages: cryptography, idna, asn1crypto, six
Running setup.py install for cryptography
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "[path-to-venv]/build/cryptography/setup.py", line 319, in <module>
**keywords_with_side_effects(sys.argv)
File "[path-to-venv]/lib/python3.4/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.4/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "[path-to-venv]/lib/python3.4/site-packages/setuptools/dist.py", line 363, in __init__
_Distribution.__init__(self, attrs)
File "/usr/local/lib/python3.4/distutils/dist.py", line 280, in __init__
self.finalize_options()
File "[path-to-venv]/lib/python3.4/site-packages/setuptools/dist.py", line 519, in finalize_options
ep.load()(self, ep.name, value)
File "[path-to-venv]/lib/python3.4/site-packages/cffi/setuptools_ext.py", line 204, in cffi_modules
add_cffi_module(dist, cffi_module)
File "[path-to-venv]/lib/python3.4/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "[path-to-venv]/lib/python3.4/site-packages/cffi/setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "src/_cffi_src/build_openssl.py", line 106, in <module>
extra_link_args=extra_link_args(compiler_type()),
File "[path-to-venv]/build/cryptography/src/_cffi_src/utils.py", line 49, in build_ffi_for_binding
extra_link_args=extra_link_args,
File "[path-to-venv]/build/cryptography/src/_cffi_src/utils.py", line 57, in build_ffi
ffi = FFI()
File "[path-to-venv]/lib/python3.4/site-packages/cffi/api.py", line 46, in __init__
import _cffi_backend as backend
ImportError: [path-to-venv]/lib/python3.4/site-packages/_cffi_backend.cpython-34m.so: undefined symbol: __syscall_error
Complete output from command [path-to-venv]/bin/python3.4 -c "import setuptools, tokenize;__file__='[path-to-venv]/build/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-pm4i20dg-record/install-record.txt --single-version-externally-managed --compile --install-headers [path-to-venv]/include/site/python3.4:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "[path-to-venv]/build/cryptography/setup.py", line 319, in <module>
**keywords_with_side_effects(sys.argv)
File "[path-to-venv]/lib/python3.4/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.4/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "[path-to-venv]/lib/python3.4/site-packages/setuptools/dist.py", line 363, in __init__
_Distribution.__init__(self, attrs)
File "/usr/local/lib/python3.4/distutils/dist.py", line 280, in __init__
self.finalize_options()
File "[path-to-venv]/lib/python3.4/site-packages/setuptools/dist.py", line 519, in finalize_options
ep.load()(self, ep.name, value)
File "[path-to-venv]/lib/python3.4/site-packages/cffi/setuptools_ext.py", line 204, in cffi_modules
add_cffi_module(dist, cffi_module)
File "[path-to-venv]/lib/python3.4/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "[path-to-venv]/lib/python3.4/site-packages/cffi/setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "src/_cffi_src/build_openssl.py", line 106, in <module>
extra_link_args=extra_link_args(compiler_type()),
File "[path-to-venv]/build/cryptography/src/_cffi_src/utils.py", line 49, in build_ffi_for_binding
extra_link_args=extra_link_args,
File "[path-to-venv]/build/cryptography/src/_cffi_src/utils.py", line 57, in build_ffi
ffi = FFI()
File "[path-to-venv]/lib/python3.4/site-packages/cffi/api.py", line 46, in __init__
import _cffi_backend as backend
ImportError: [path-to-venv]/lib/python3.4/site-packages/_cffi_backend.cpython-34m.so: undefined symbol: __syscall_error
----------------------------------------
Cleaning up...
Command [path-to-venv]/bin/python3.4 -c "import setuptools, tokenize;__file__='[path-to-venv]/build/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-pm4i20dg-record/install-record.txt --single-version-externally-managed --compile --install-headers [path-to-venv]/include/site/python3.4 failed with error code 1 in [path-to-venv]/build/cryptography
Storing debug log for failure in /home/webdev/.pip/pip.log
What's malfunctioning here and how to fix it?
Installing cryptography seems like a relatively straightforward thing to do with a virtual environment, but it's not working and I don't see any references to problems like this one anywhere online.
Update: the operating system type is Linux, and installation of cryptography works fine on the system itself. This problem only appears when attempting to install into a virtual environment.
for me using virtualenv solved the problem
create virtual environment by
python3 -m virtualenv venv
then install cryptography
pip install cryptography
I'm relatively new to Python, Django and Heroku. I'm attempting to follow the instructions on setting up a Django Heroku project found here. I'm getting stuck at the following command:
$ pip install django-toolbelt
I get the following error
Requirement already satisfied (use --upgrade to upgrade): django-toolbelt in c:\
django\contactmanager\venv\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): django in c:\django\co
ntactmanager\venv\lib\site-packages (from django-toolbelt)
Downloading/unpacking psycopg2 (from django-toolbelt)
Running setup.py egg_info for package psycopg2
Downloading/unpacking gunicorn (from django-toolbelt)
Running setup.py egg_info for package gunicorn
warning: no previously-included files matching '*.pyc' found under directory
'docs'
warning: no previously-included files matching '*.pyo' found under directory
'docs'
warning: no previously-included files matching '*.pyc' found under directory
'tests'
warning: no previously-included files matching '*.pyo' found under directory
'tests'
warning: no previously-included files matching '*.pyc' found under directory
'examples'
warning: no previously-included files matching '*.pyo' found under directory
'examples'
Downloading/unpacking dj-database-url (from django-toolbelt)
Running setup.py egg_info for package dj-database-url
Downloading/unpacking dj-static (from django-toolbelt)
Running setup.py egg_info for package dj-static
Downloading/unpacking static (from dj-static->django-toolbelt)
Running setup.py egg_info for package static
Downloading/unpacking pystache (from static->dj-static->django-toolbelt)
Running setup.py egg_info for package pystache
pystache: using: version '0.6' of <module 'setuptools' from 'C:\Django\conta
ctmanager\venv\lib\site-packages\distribute-0.6.34-py2.7.egg\setuptools\__init__
.pyc'>
Installing collected packages: psycopg2, gunicorn, dj-database-url, dj-static, s
tatic, pystache
Running setup.py install for psycopg2
building 'psycopg2._psycopg' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Django\contactmanager\venv\build\psycopg2\setup.py", line 568, in
<module>
ext_modules=ext)
File "C:\Python27\Lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\Lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Django\contactmanager\venv\lib\site-packages\distribute-0.6.34-py
2.7.egg\setuptools\command\install.py", line 53, in run
return _install.run(self)
File "C:\Python27\Lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\Python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\Lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\Python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\Lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "C:\Python27\Lib\distutils\command\build_ext.py", line 446, in build_
extensions
self.build_extension(ext)
File "C:\Django\contactmanager\venv\build\psycopg2\setup.py", line 284, in
build_extension
build_ext.build_extension(self, extension)
File "C:\Python27\Lib\distutils\command\build_ext.py", line 496, in build_
extension
depends=ext.depends)
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 299, in query_vcva
rsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
Complete output from command C:\Django\contactmanager\venv\Scripts\python.ex
e -c "import setuptools;__file__='C:\\Django\\contactmanager\\venv\\build\\psyco
pg2\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file_
_, 'exec'))" install --record c:\users\hp\appdata\local\temp\pip-ka3mfj-record\i
nstall-record.txt --single-version-externally-managed --install-headers C:\Djang
o\contactmanager\venv\include\site\python2.7:
running install
running build
running build_py
running build_ext
building 'psycopg2._psycopg' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Django\contactmanager\venv\build\psycopg2\setup.py", line 568, in <mo
dule>
ext_modules=ext)
File "C:\Python27\Lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\Lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Django\contactmanager\venv\lib\site-packages\distribute-0.6.34-py2.7.
egg\setuptools\command\install.py", line 53, in run
return _install.run(self)
File "C:\Python27\Lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\Python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\Lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\Python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\Lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "C:\Python27\Lib\distutils\command\build_ext.py", line 446, in build_exte
nsions
self.build_extension(ext)
File "C:\Django\contactmanager\venv\build\psycopg2\setup.py", line 284, in bui
ld_extension
build_ext.build_extension(self, extension)
File "C:\Python27\Lib\distutils\command\build_ext.py", line 496, in build_exte
nsion
depends=ext.depends)
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python27\Lib\distutils\msvc9compiler.py", line 299, in query_vcvarsal
l
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
----------------------------------------
Command C:\Django\contactmanager\venv\Scripts\python.exe -c "import setuptools;_
_file__='C:\\Django\\contactmanager\\venv\\build\\psycopg2\\setup.py';exec(compi
le(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --re
cord c:\users\hp\appdata\local\temp\pip-ka3mfj-record\install-record.txt --singl
e-version-externally-managed --install-headers C:\Django\contactmanager\venv\inc
lude\site\python2.7 failed with error code 1 in C:\Django\contactmanager\venv\bu
ild\psycopg2
Storing complete log in C:\Users\hp\pip\pip.log
According to this link I'm supposed to install python-dev, python-psycopg2, libpq-dev before installing django-toolbelt.
I'm on a Windows machine. How can I install these dependencies? I tried installing them with pip but that doesn't work.
Apparently psycopg2 installers do not work under a virtualenv environment. I downloaded an executable binary from http://stickpeople.com/projects/python/win-psycopg/
To install the native binary in a virtual envrionment, use easy_install:
C:\virtualenv\Scripts\> activate.bat
(virtualenv) C:\virtualenv\Scripts\> easy_install psycopg2-2.5.win32-py2.7-pg9.2.4-release.exe
This blog post seems useful for your case:
http://www.swarley.me.uk/blog/2014/02/24/create-a-django-development-environment-on-64-bit-windows-for-heroku-deployment/
Or you can just find the windows ports for these dependency packages.
Ok, I've attempted to make pyopenssl work on my windows 7 x64 instance and can't be very much luck.
I want to use pyopenSSL and I've installed like this pip install pyopenSSL.
Matter is I can't make it run, Installed python 2.7 added to register, make pywin32 for it, but can't work. I have all necessary config in PATH and scripts, but doesn't work at all.
When I tried here's the log I get.
What am I missing here? I'm blind. Thanks in advance for any help.
------------------------------------------------------------
C:\sdks\Python27\Scripts\pip-script.py run on 08/05/13 00:37:15
Downloading/unpacking pyopenssl
Getting page https://pypi.python.org/simple/pyopenssl/
URLs to search for versions for pyopenssl:
* https://pypi.python.org/simple/pyopenssl/
Analyzing links from page https://pypi.python.org/simple/pyOpenSSL/
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.4.exe#md5=8ae7625797c7c9a9faf76499c0ad5061 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.13-py2.4-win32.egg#md5=8695c7c3d19ff6d6fb8d4d6071a880fc (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.6.tar.gz#md5=af67fda6d2125cae9c56ee50430a40c7 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.6
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.12.winxp32-py2.7.msi#md5=727f31a727cb29302d7618bf2bcb8af3 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.4.exe#md5=a808b0e53d31aea0158ef56f8fc0af4b (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.12-py2.7-win32.egg#md5=c343e3833b725e060c094bbf33349349 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.12.winxp32-py3.2.msi#md5=a64f1513926c994b44e9922e56c47a84 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.5.exe#md5=b61ef0e38b6313277ca6b9c738700641 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.10-py2.6-win32.egg#md5=b480ef0b4b26d6493b62994f4c2903db (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.13-py3.2-win32.egg#md5=8c21807ad495d6bdd4a729f21cc8c164 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.10-py2.5-win32.egg#md5=00ddbd942655468a0f6d1e9947ec05a4 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.9.win32-py2.6.exe#md5=f5f39048dd5f05375f9a8198fe993fcc (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.13-py2.5-win32.egg#md5=9f251206280201e7837c51e15c32a4e5 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.12-py2.4-win32.egg#md5=4cb0d30f99b3d3e72996dba820f1cad0 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.7.tar.gz#md5=1924edc58c1e99f27763971d9959ea15 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.7
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.9.tar.gz#md5=5bf282b2d6a03af921920c34079580f2 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.9
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.12.winxp32-py2.6.msi#md5=9ff89287d92462d7ad1b4638746110be (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.12-py2.6-win32.egg#md5=e006a26f085cf6399eee86b6485eaa6d (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.5.exe#md5=2e6148d48dd9864ebdac2c94b36ea9d7 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.12-py2.6-win-amd64.egg#md5=8797b1f77437405ec2173f3646160a47 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.8.tar.gz#md5=c1d86fdeb0cfd33dd42aa243c6a41f5e (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.8
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.6.exe#md5=54c7dd629bf4004569a7c97c9ef6daa5 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.7.msi#md5=3438c0e3a87060959d7061f939c6b03d (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.12.winxp32-py2.5.msi#md5=a340bec6c4d1cd8a80f56ce6cdfbe5d2 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.10-py2.4-win32.egg#md5=c12159efa233333541140c24e1fa094b (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.12-py3.2-win32.egg#md5=7f0777a02614f729d8ef9627995d2705 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.6.msi#md5=90920217fb35d76524cab66c8c135cc8 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.12-py2.5-win32.egg#md5=45d679ed7d386f48d1d5dd1bc8e539cb (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.6.msi#md5=1646faad52bcbdb56c81435a51e99bf5 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.5.msi#md5=b7cf3e16a675937543243bef3ad3c106 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py3.2.exe#md5=2bb725ce9ea21ccac9999d614aac2499 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.6.exe#md5=8935156097d9396161063fba5eb7f4a5 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.13-py2.6-win32.egg#md5=939c493e3415da166918bc86c40a945b (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.10.tar.gz#md5=34db8056ec53ce80c7f5fc58bee9f093 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.10
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.13-py2.7-win32.egg#md5=e0b7b0d2cccca83ae38e11c3a105dfe4 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.5.msi#md5=6c24249c2dc772e4bb60bbb3a139eba8 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.7.exe#md5=3acf96ea5ed7aec880570cc6477f8507 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.12.tar.gz#md5=60a7bbb6160950823eddcbba2cbcb0d6 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.12
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py3.2.msi#md5=2e8e10ecfcf1f007ce2503839a3a2e30 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.13.tar.gz#md5=767bca18a71178ca353dff9e10941929 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.13
Found link https://launchpadlibrarian.net/58498441/pyOpenSSL-0.11.tar.gz#md5=9e76e57e00fa48745fcfe23944db1e6c (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.11
Using version 0.13 (newest of versions: 0.13, 0.12, 0.11, 0.10, 0.9, 0.8, 0.7, 0.6)
Downloading from URL https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.13.tar.gz#md5=767bca18a71178ca353dff9e10941929 (from https://pypi.python.org/simple/pyOpenSSL/)
Running setup.py egg_info for package pyopenssl
running egg_info
creating pip-egg-info\pyOpenSSL.egg-info
writing pip-egg-info\pyOpenSSL.egg-info\PKG-INFO
writing top-level names to pip-egg-info\pyOpenSSL.egg-info\top_level.txt
writing dependency_links to pip-egg-info\pyOpenSSL.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'
Source in c:\users\igorco~1\appdata\local\temp\pip-build-igor costa\pyopenssl has version 0.13, which satisfies requirement pyopenssl
Installing collected packages: pyopenssl
Running setup.py install for pyopenssl
Running command C:\sdks\Python27\python.exe -c "import setuptools;__file__='c:\\users\\igorco~1\\appdata\\local\\temp\\pip-build-Igor Costa\\pyopenssl\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\igorco~1\appdata\local\temp\pip-rwp7c6-record\install-record.txt --single-version-externally-managed
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\__init__.py -> build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\tsafe.py -> build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\version.py -> build\lib.win-amd64-2.7\OpenSSL
creating build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\__init__.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\util.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_crypto.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_rand.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_ssl.py -> build\lib.win-amd64-2.7\OpenSSL\test
running build_ext
building 'OpenSSL.crypto' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl\setup.py", line 221, in <module>
... and much more ;)"""
File "C:\sdks\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\sdks\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\sdks\Python27\lib\site-packages\distribute-0.6.49-py2.7.egg\setuptools\command\install.py", line 53, in run
return _install.run(self)
File "C:\sdks\Python27\lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\sdks\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\sdks\Python27\lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\sdks\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl\setup.py", line 166, in run
build_ext.run(self)
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 498, in build_extension
depends=ext.depends)
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
Complete output from command C:\sdks\Python27\python.exe -c "import setuptools;__file__='c:\\users\\igorco~1\\appdata\\local\\temp\\pip-build-Igor Costa\\pyopenssl\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\igorco~1\appdata\local\temp\pip-rwp7c6-record\install-record.txt --single-version-externally-managed:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\__init__.py -> build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\tsafe.py -> build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\version.py -> build\lib.win-amd64-2.7\OpenSSL
creating build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\__init__.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\util.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_crypto.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_rand.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_ssl.py -> build\lib.win-amd64-2.7\OpenSSL\test
running build_ext
building 'OpenSSL.crypto' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl\setup.py", line 221, in <module>
... and much more ;)"""
File "C:\sdks\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\sdks\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\sdks\Python27\lib\site-packages\distribute-0.6.49-py2.7.egg\setuptools\command\install.py", line 53, in run
return _install.run(self)
File "C:\sdks\Python27\lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\sdks\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\sdks\Python27\lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\sdks\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl\setup.py", line 166, in run
build_ext.run(self)
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 498, in build_extension
depends=ext.depends)
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
----------------------------------------
Cleaning up...
Removing temporary dir c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa...
Command C:\sdks\Python27\python.exe -c "import setuptools;__file__='c:\\users\\igorco~1\\appdata\\local\\temp\\pip-build-Igor Costa\\pyopenssl\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\igorco~1\appdata\local\temp\pip-rwp7c6-record\install-record.txt --single-version-externally-managed failed with error code 1 in c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl
Exception information:
Traceback (most recent call last):
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\basecommand.py", line 134, in main
status = self.run(options, args)
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\commands\install.py", line 241, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\req.py", line 1277, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\req.py", line 622, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command C:\sdks\Python27\python.exe -c "import setuptools;__file__='c:\\users\\igorco~1\\appdata\\local\\temp\\pip-build-Igor Costa\\pyopenssl\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\igorco~1\appdata\local\temp\pip-rwp7c6-record\install-record.txt --single-version-externally-managed failed with error code 1 in c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl
You can download pyOpenSsl built msi here!
If u use 64bit windows, u can just download 32bit built package, and when install, choose the python location manually.
good luck.