I received a python file from a contributor who makes use of the scikit-learn-extra library. When I try to install it I get the following error:
error: subprocess-exited-with-error
× Building wheel for scikit-learn-extra (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [49 lines of output]
C:\Users\bogda\AppData\Local\Temp\pip-build-env-0mronz9o\overlay\Lib\site-packages\setuptools\dist.py:775: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\benchmarks
copying benchmarks\bench_rbfsampler_fastfood.py -> build\lib.win-amd64-cpython-310\benchmarks
copying benchmarks\__init__.py -> build\lib.win-amd64-cpython-310\benchmarks
creating build\lib.win-amd64-cpython-310\sklearn_extra
copying sklearn_extra\_version.py -> build\lib.win-amd64-cpython-310\sklearn_extra
copying sklearn_extra\__init__.py -> build\lib.win-amd64-cpython-310\sklearn_extra
creating build\lib.win-amd64-cpython-310\benchmarks\_bench
copying benchmarks\_bench\eigenpro_plot_mnist.py -> build\lib.win-amd64-cpython-310\benchmarks\_bench
copying benchmarks\_bench\eigenpro_plot_noisy_mnist.py -> build\lib.win-amd64-cpython-310\benchmarks\_bench
copying benchmarks\_bench\eigenpro_plot_synthetic.py -> build\lib.win-amd64-cpython-310\benchmarks\_bench
copying benchmarks\_bench\robust_plot_synthetic.py -> build\lib.win-amd64-cpython-310\benchmarks\_bench
copying benchmarks\_bench\__init__.py -> build\lib.win-amd64-cpython-310\benchmarks\_bench
creating build\lib.win-amd64-cpython-310\sklearn_extra\cluster
copying sklearn_extra\cluster\_commonnn.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster
copying sklearn_extra\cluster\_k_medoids.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster
copying sklearn_extra\cluster\__init__.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster
creating build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation
copying sklearn_extra\kernel_approximation\test_fastfood.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation
copying sklearn_extra\kernel_approximation\_fastfood.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation
copying sklearn_extra\kernel_approximation\__init__.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation
creating build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods
copying sklearn_extra\kernel_methods\_eigenpro.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods
copying sklearn_extra\kernel_methods\__init__.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods
creating build\lib.win-amd64-cpython-310\sklearn_extra\robust
copying sklearn_extra\robust\mean_estimators.py -> build\lib.win-amd64-cpython-310\sklearn_extra\robust
copying sklearn_extra\robust\robust_weighted_estimator.py -> build\lib.win-amd64-cpython-310\sklearn_extra\robust
copying sklearn_extra\robust\__init__.py -> build\lib.win-amd64-cpython-310\sklearn_extra\robust
creating build\lib.win-amd64-cpython-310\sklearn_extra\tests
copying sklearn_extra\tests\test_common.py -> build\lib.win-amd64-cpython-310\sklearn_extra\tests
copying sklearn_extra\tests\__init__.py -> build\lib.win-amd64-cpython-310\sklearn_extra\tests
creating build\lib.win-amd64-cpython-310\sklearn_extra\cluster\tests
copying sklearn_extra\cluster\tests\test_commonnn.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster\tests
copying sklearn_extra\cluster\tests\test_k_medoids.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster\tests
copying sklearn_extra\cluster\tests\__init__.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster\tests
creating build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation\tests
copying sklearn_extra\kernel_approximation\tests\__init__.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation\tests
creating build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods\tests
copying sklearn_extra\kernel_methods\tests\test_eigenpro.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods\tests
copying sklearn_extra\kernel_methods\tests\__init__.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods\tests
running build_ext
building 'sklearn_extra.utils._cyfht' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for scikit-learn-extra
Failed to build scikit-learn-extra
ERROR: Could not build wheels for scikit-learn-extra, which is required to install pyproject.toml-based projects
I've tried to Install a greater Version of Microsoft Visual C++ but it dosen't work. On the machine of my collaborator it works. He has a linux OS.
I've also tried to install by downloading the repository and running python setup.py install but I got this error:
Traceback (most recent call last):
File "C:\Users\bogda\Desktop\scikit-learn-extra-main\setup.py", line 8, in <module>
from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'
Related
This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error: Microsoft Visual C++ 14.0 is required
(13 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed 28 days ago.
I am using the pip install cx_Freeze command, but I get a subprocess error. Why does it happen?
Note: My system is Windows 11 and my Python version is 3.11.1.
Command Output:
C:\Users\<user>\>pip install cx_Freeze
Collecting cx_Freeze
Using cached cx_Freeze-6.13.1.tar.gz (1.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: packaging>=21.0 in c:\users\<user> \appdata\local\programs\python\python311\lib\site-packages (from cx_Freeze) (23.0)
Requirement already satisfied: setuptools<66,>=59.0.1 in c:\users\<user>\appdata\local\programs\python\python311\lib\site-packages (from cx_Freeze) (65.5.0)
Requirement already satisfied: lief>=0.12.0 in c:\users\<user>\appdata\local\programs\python\python311\lib\site-packages (from cx_Freeze) (0.12.3)
Building wheels for collected packages: cx_Freeze
Building wheel for cx_Freeze (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cx_Freeze (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [84 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\cx_Freeze
copying cx_Freeze\cli.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\common.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\darwintools.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\dist.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\exception.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\executable.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\finder.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\freezer.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\module.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\parser.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\sandbox.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\setupwriter.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\winmsvcr.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\winversioninfo.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\_compat.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\__main__.py -> build\lib.win-amd64-cpython-311\cx_Freeze
creating build\lib.win-amd64-cpython-311\cx_Freeze\bases
copying cx_Freeze\bases\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\bases
creating build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\bdist_mac.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\bdist_msi.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\bdist_rpm.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\build.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\build_exe.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\install.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\install_exe.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\_bdist_msi.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\_pydialog.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\crypto.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\cv2.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\exclude.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\numpy.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\scipy.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\_qthooks.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
creating build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\console.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\consolesetlibpath.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\sharedlib.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\sharedlibsource.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\__startup__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt5
copying cx_Freeze\hooks\pyqt5\add_library.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt5
copying cx_Freeze\hooks\pyqt5\debug.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt5
copying cx_Freeze\hooks\pyqt5\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt5
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt6
copying cx_Freeze\hooks\pyqt6\debug.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt6
copying cx_Freeze\hooks\pyqt6\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt6
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\debug.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\resource.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\debug.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\resource.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
running egg_info
writing cx_Freeze.egg-info\PKG-INFO
writing dependency_links to cx_Freeze.egg-info\dependency_links.txt
writing entry points to cx_Freeze.egg-info\entry_points.txt
writing requirements to cx_Freeze.egg-info\requires.txt
writing top-level names to cx_Freeze.egg-info\top_level.txt
reading manifest file 'cx_Freeze.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'doc/src/license.rst'
writing manifest file 'cx_Freeze.egg-info\SOURCES.txt'
copying cx_Freeze\hooks\pyside2\qt.conf -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\resource.qrc -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\resource.sh -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside6\qt.conf -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\resource.qrc -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\resource.sh -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
running build_ext
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cx_Freeze
Failed to build cx_Freeze
ERROR: Could not build wheels for cx_Freeze, which is required to install pyproject.toml-based projects
From the error message: "error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/"
cx_freeze requires a c-compiler: https://cx-freeze.readthedocs.io/en/latest/installation.html#python-requirements
I'm trying install Scip optimization for python and I'm following a video but in the video it is installing Scip Optimization 7, and I'm installing Scip Optimization 8. Then I need to install on prompt too.
pip install pyscipopt
but it gave me an error:
Microsoft Windows [versão 10.0.19043.1645]
(c) Microsoft Corporation. Todos os direitos reservados.
C:\Users\matsu>pip install pyscipopt
Defaulting to user installation because normal site-packages is not writeable
Collecting pyscipopt
Using cached PySCIPOpt-4.2.0.tar.gz (661 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: wheel in c:\users\matsu\appdata\roaming\python\python39\site-packages (from pyscipopt) (0.37.1)
Building wheels for collected packages: pyscipopt
Building wheel for pyscipopt (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
Assuming that SCIP is installed globally, because SCIPOPTDIR is undefined.
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\Multidict.py -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\__init__.py -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\scip.pyx -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\scip.pxd -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\benders.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\benderscut.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\branchrule.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\conshdlr.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\cutsel.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\event.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\expr.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\heuristic.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\lp.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\nodesel.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\presol.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\pricer.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\propagator.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\reader.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\relax.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\sepa.pxi -> build\lib.win-amd64-3.9\pyscipopt
running build_ext
building 'pyscipopt.scip' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyscipopt
Running setup.py clean for pyscipopt
Failed to build pyscipopt
Installing collected packages: pyscipopt
Running setup.py install for pyscipopt ... error
error: subprocess-exited-with-error
× Running setup.py install for pyscipopt did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
Assuming that SCIP is installed globally, because SCIPOPTDIR is undefined.
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\Multidict.py -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\__init__.py -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\scip.pyx -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\scip.pxd -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\benders.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\benderscut.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\branchrule.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\conshdlr.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\cutsel.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\event.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\expr.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\heuristic.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\lp.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\nodesel.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\presol.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\pricer.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\propagator.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\reader.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\relax.pxi -> build\lib.win-amd64-3.9\pyscipopt
copying src\pyscipopt\sepa.pxi -> build\lib.win-amd64-3.9\pyscipopt
running build_ext
building 'pyscipopt.scip' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[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.
╰─> pyscipopt
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Can anyone help me?
I was stuck with the same problem.
It was resolved by installing the "Microsoft C++ Build Tools" for desktop C++ development which I had not chosen in my earlier attempts.
I am building a web app in Django and use the django-paypal library for integration with paypal. The integration went without a problem, the problem is with the paypal encrypted buttons because to use that button/form I need to install M2Crypto.
I am trying to follow this instructions, and I say trying because to be honest I don't quite understand them:
https://gitlab.com/m2crypto/m2crypto/-/blob/master/INSTALL.rst
For example, one of the instructions that I don't understand is:
To install M2Crypto, you must be able to compile and link C sources
against Python and OpenSSL
I already install OpenSSL and install Swig following this youtube video:
https://www.youtube.com/watch?v=HDD9QqLtAws
The error generates when use
pip install M2Crypto
And the error is:
Collecting M2Crypto
Using cached M2Crypto-0.38.0.tar.gz (1.2 MB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for M2Crypto, since package 'wheel' is not installed.
Installing collected packages: M2Crypto
Running setup.py install for M2Crypto ... error
error: subprocess-exited-with-error
× Running setup.py install for M2Crypto did not run successfully.
│ exit code: 1
╰─> [60 lines of output]
running install
running build
running build_py
copying src\M2Crypto\ASN1.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\AuthCookie.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\BIO.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\BN.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\callback.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\DH.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\DSA.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\EC.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\Engine.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\Err.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\EVP.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\ftpslib.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\httpslib.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\m2.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\m2crypto.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\m2urllib.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\m2urllib2.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\m2xmlrpclib.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\Rand.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\RC4.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\RSA.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\six.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\SMIME.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\threading.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\util.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\X509.py -> build\lib.win-amd64-3.10\M2Crypto
copying src\M2Crypto\__init__.py -> build\lib.win-amd64-3.10\M2Crypto
creating build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\cb.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\Checker.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\Cipher.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\Connection.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\Context.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\Session.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\SSLServer.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\ssl_dispatcher.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\timeout.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\TwistedProtocolWrapper.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
copying src\M2Crypto\SSL\__init__.py -> build\lib.win-amd64-3.10\M2Crypto\SSL
running egg_info
writing src\M2Crypto.egg-info\PKG-INFO
writing dependency_links to src\M2Crypto.egg-info\dependency_links.txt
swig.exe -python -py3 -IC:\Users\jorge\AppData\Local\Programs\Python\Python310\include -
IC:\Users\jorge\AppData\Local\Programs\Python\Python310\Include -I/usr/include/openssl -
includeall -modern -builtin -outdir C:\Users\jorge\AppData\Local\Temp\pip-install-rtopb2r1
\m2crypto_906291f76c734281be933fa782d5d491\src\M2Crypto -o src/SWIG/_m2crypto_wrap.c
src/SWIG/_m2crypto.i
error: command 'swig.exe' failed: None
[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.
╰─> M2Crypto
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I'm certain that the error is some step in the instalation that either I'm missing or doing wrong, so I am asking for help if someone can please give me a streamline version of the steps in the installation of M2Crypto
I'm using Python 3.10.0 and Django 3.2.9 in Windows 10
I want to use dataprep on Python. I tried to install it with this command
!pip install dataprep on Jupyter Notebook. I have tried find the solution all over the internet. I have tried to install through Anaconda CMD but still failed. The failed output error is like this; Anyone has the solution?
Building wheels for collected packages: bottleneck
Building wheel for bottleneck (pyproject.toml): started
Building wheel for bottleneck (pyproject.toml): finished with status 'error'
Failed to build bottleneck
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\anaconda3\python.exe' 'c:\users\user\anaconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\User\AppData\Local\Temp\tmpc2rt_tpk'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-d3qw7kcm\bottleneck_032fd76987774d54a306e1730d779cf3
Complete output (51 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\bottleneck
copying bottleneck\_pytesttester.py -> build\lib.win-amd64-3.7\bottleneck
copying bottleneck\_version.py -> build\lib.win-amd64-3.7\bottleneck
copying bottleneck\__init__.py -> build\lib.win-amd64-3.7\bottleneck
creating build\lib.win-amd64-3.7\bottleneck\benchmark
copying bottleneck\benchmark\autotimeit.py -> build\lib.win-amd64-3.7\bottleneck\benchmark
copying bottleneck\benchmark\bench.py -> build\lib.win-amd64-3.7\bottleneck\benchmark
copying bottleneck\benchmark\bench_detailed.py -> build\lib.win-amd64-3.7\bottleneck\benchmark
copying bottleneck\benchmark\__init__.py -> build\lib.win-amd64-3.7\bottleneck\benchmark
creating build\lib.win-amd64-3.7\bottleneck\slow
copying bottleneck\slow\move.py -> build\lib.win-amd64-3.7\bottleneck\slow
copying bottleneck\slow\nonreduce.py -> build\lib.win-amd64-3.7\bottleneck\slow
copying bottleneck\slow\nonreduce_axis.py -> build\lib.win-amd64-3.7\bottleneck\slow
copying bottleneck\slow\reduce.py -> build\lib.win-amd64-3.7\bottleneck\slow
copying bottleneck\slow\__init__.py -> build\lib.win-amd64-3.7\bottleneck\slow
creating build\lib.win-amd64-3.7\bottleneck\src
copying bottleneck\src\bn_config.py -> build\lib.win-amd64-3.7\bottleneck\src
copying bottleneck\src\bn_template.py -> build\lib.win-amd64-3.7\bottleneck\src
copying bottleneck\src\__init__.py -> build\lib.win-amd64-3.7\bottleneck\src
creating build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\input_modification_test.py -> build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\list_input_test.py -> build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\memory_test.py -> build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\move_test.py -> build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\nonreduce_axis_test.py -> build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\nonreduce_test.py -> build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\reduce_test.py -> build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\scalar_input_test.py -> build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\util.py -> build\lib.win-amd64-3.7\bottleneck\tests
copying bottleneck\tests\__init__.py -> build\lib.win-amd64-3.7\bottleneck\tests
UPDATING build\lib.win-amd64-3.7\bottleneck/_version.py
set build\lib.win-amd64-3.7\bottleneck/_version.py to '1.3.2'
running build_ext
running config
compiling '_configtest.c':
int __attribute__((optimize("O3"))) have_attribute_optimize_opt_3(void*);
int main(void)
{
return 0;
}
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for bottleneck
ERROR: Could not build wheels for bottleneck, which is required to install pyproject.toml-based projects
1
When I execute python setup.py install in Windows 10, I see this output:
C:\Python27\Tools\Scripts>python setup.py install
running install
running build
running build_scripts
creating build
creating build\scripts-2.7
copying and adjusting byteyears.py -> build\scripts-2.7
copying and adjusting checkpyc.py -> build\scripts-2.7
copying and adjusting copytime.py -> build\scripts-2.7
copying and adjusting crlf.py -> build\scripts-2.7
copying and adjusting dutree.py -> build\scripts-2.7
error: file 'C:\Python27\Tools\Scripts\ftpmirror.py' does not exist
I solve this problem very easy. Just add/copy missing file from https://svn.python.org/projects/python/trunk/Tools/scripts/ftpmirror.py to the path C:\Python27\Tools\Scripts and execute
python setup.py install
again.