Fail to install dataprep library on Jupyter Notebook - python

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

Related

Why do I get a subprocess error when installing cx_Freeze? [duplicate]

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

Can't install the package scikit-learn-extra

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'

Install Scip optimization

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.

pip install cocotb ask me for visual C++ compiler installation

I followed cocotb officials instructions to install package on windows with miniconda3 and :
conda install -c msys2 m2-base m2-make
but I'm blocked on this error :
(base) PS C:\Users\me> pip install cocotb
Collecting cocotb
Using cached cocotb-1.6.2.tar.gz (209 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cocotb
Building wheel for cocotb (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cocotb (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [86 lines of output]
Modelsim/Questa executable (vdbg) executable not found. No FLI interface will be available.
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\cocotb
copying cocotb\ANSI.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\binary.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\clock.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\config.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\decorators.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\handle.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\ipython_support.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\log.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\memdebug.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\outcomes.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\queue.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\regression.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\result.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\scheduler.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\triggers.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\utils.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\wavedrom.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\xunit_reporter.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\_py_compat.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\_sim_versions.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\_version.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\__init__.py -> build\lib.win-amd64-3.9\cocotb
creating build\lib.win-amd64-3.9\pygpi
copying pygpi\entry.py -> build\lib.win-amd64-3.9\pygpi
copying pygpi\__init__.py -> build\lib.win-amd64-3.9\pygpi
creating build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\array.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\logic.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\logic_array.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\range.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\__init__.py -> build\lib.win-amd64-3.9\cocotb\types
creating build\lib.win-amd64-3.9\cocotb\_vendor
copying cocotb\_vendor\distutils_version.py -> build\lib.win-amd64-3.9\cocotb\_vendor
copying cocotb\_vendor\__init__.py -> build\lib.win-amd64-3.9\cocotb\_vendor
creating build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
copying cocotb\_vendor\find_libpython\_version.py -> build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
copying cocotb\_vendor\find_libpython\__init__.py -> build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
copying cocotb\_vendor\find_libpython\__main__.py -> build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
creating build\lib.win-amd64-3.9\cocotb\share
creating build\lib.win-amd64-3.9\cocotb\share\makefiles
copying cocotb\share\makefiles\Makefile.deprecations -> build\lib.win-amd64-3.9\cocotb\share\makefiles
copying cocotb\share\makefiles\Makefile.inc -> build\lib.win-amd64-3.9\cocotb\share\makefiles
copying cocotb\share\makefiles\Makefile.sim -> build\lib.win-amd64-3.9\cocotb\share\makefiles
creating build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.activehdl -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.cvc -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.ghdl -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.icarus -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.ius -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.modelsim -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.questa -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.riviera -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.vcs -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.verilator -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.xcelium -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
creating build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\cocotb_utils.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\embed.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\exports.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\gpi.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\gpi_logging.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\py_gpi_logging.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\sv_vpi_user.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vhpi_user.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vhpi_user_ext.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vpi_user.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vpi_user_ext.h -> build\lib.win-amd64-3.9\cocotb\share\include
creating build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\.gitignore -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\aldec.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\ghdl.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\icarus.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\modelsim.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\README.md -> build\lib.win-amd64-3.9\cocotb\share\def
creating build\lib.win-amd64-3.9\cocotb\share\lib
creating build\lib.win-amd64-3.9\cocotb\share\lib\verilator
copying cocotb\share\lib\verilator\verilator.cpp -> build\lib.win-amd64-3.9\cocotb\share\lib\verilator
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 cocotb
Failed to build cocotb
ERROR: Could not build wheels for cocotb, which is required to install pyproject.toml-based projects
(base) PS C:\Users\me>
I tried with global option :
pip install --global-option build_ext --global-option --compiler=mingw32 cocotb
With exactly the same error.
It seems to be a verilator install error. I don't need verilator, maybe there is an option to not install it ?
I finally managed to install cocotb with following procedure on msys2.
Download and install msys2.
update msys2 :
$ pacman -Syu
[close then re-launch terminal]
$ pacman -Su
Install Gcc and git
$ pacman -S –needed base-devel mingw-w64-x86_64-toolchain
$ pacman -S git
Install GHDL
$ pacman -S mingw-w64-x86_64-ghdl-llvm
Install gtkwave
$ pacman -S mingw-w64-x86_64-gtkwave
Install python3
$ pacman -S mingw-w64-x86_64-python-scipy mingw-w64-x86_64-python-matplotlib mingw-w64-x86_64-python-numpy
$ pacman -S --needed make mingw-w64-x86_64-gcc mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-setuptools mingw-w64-x86_64-python3-wheel
Close terminal then open «MSYS2 MinGW 64-bit» from windows start menu.
And finally install cocotb with pip install :
$ pip install --no-build-isolation cocotb
$ pip install --no-build-isolation pytest
$ pip install --no-build-isolation cocotbext-axi
then enjoy classical cocotb makefile to simulate VHDL with GHDL. And visualize vcd traces with gtkwave.
I tested this procedure on other windows computer with succes.

Installing Keras in pycharm causing failure

I am trying to use Keras for time series forecasting and I stumbled across an error while installing Keras lib.
Here is an error message that I got:
Collecting keras
Using cached Keras-2.4.3-py2.py3-none-any.whl (36 kB)
Requirement already satisfied: numpy>=1.9.1 in e:\program files (x86)\pythonworkspace\r&dproject\venv\lib\site-packages (from keras) (1.20.1)
Collecting h5py
Using cached h5py-3.2.1.tar.gz (368 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: scipy>=0.14 in e:\program files (x86)\pythonworkspace\r&dproject\venv\lib\site-packages (from keras) (1.6.1)
Collecting pyyaml
Using cached PyYAML-5.4.1-cp38-cp38-win32.whl (196 kB)
Building wheels for collected packages: h5py
Building wheel for h5py (PEP 517): started
Building wheel for h5py (PEP 517): finished with status 'error'
Failed to build h5py
DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated and has no effect anymore. pip 21.1 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
ERROR: Command errored out with exit status 1:
command: 'E:\Program Files (x86)\PythonWorkspace\R&DProject\venv\Scripts\python.exe' 'E:\Program Files (x86)\PythonWorkspace\R&DProject\venv\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\Pdani\AppData\Local\Temp\tmp3bkex0vs'
cwd: C:\Users\Pdani\AppData\Local\Temp\pip-install-ohk956w8\h5py_04e48a12b76742f58110ae0bdae41c39
Complete output (73 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\h5py
copying h5py\h5py_warnings.py -> build\lib.win32-3.8\h5py
copying h5py\ipy_completer.py -> build\lib.win32-3.8\h5py
copying h5py\version.py -> build\lib.win32-3.8\h5py
copying h5py\__init__.py -> build\lib.win32-3.8\h5py
creating build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\attrs.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\base.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\compat.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\dataset.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\datatype.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\dims.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\files.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\filters.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\group.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\selections.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\selections2.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\vds.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\__init__.py -> build\lib.win32-3.8\h5py\_hl
creating build\lib.win32-3.8\h5py\tests
copying h5py\tests\common.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\conftest.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_attribute_create.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_attrs.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_attrs_data.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_base.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_big_endian_file.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_completions.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dataset.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dataset_getitem.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dataset_swmr.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_datatype.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dimension_scales.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dims_dimensionproxy.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dtype.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_errors.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_file.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_file2.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_file_image.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_filters.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_group.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5d_direct_chunk.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5f.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5o.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5p.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5pl.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5t.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_objects.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_selections.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_slicing.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\__init__.py -> build\lib.win32-3.8\h5py\tests
creating build\lib.win32-3.8\h5py\tests\data_files
copying h5py\tests\data_files\__init__.py -> build\lib.win32-3.8\h5py\tests\data_files
creating build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\test_highlevel_vds.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\test_lowlevel_vds.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\test_virtual_source.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\__init__.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\data_files\vlen_string_dset.h5 -> build\lib.win32-3.8\h5py\tests\data_files
copying h5py\tests\data_files\vlen_string_dset_utc.h5 -> build\lib.win32-3.8\h5py\tests\data_files
copying h5py\tests\data_files\vlen_string_s390x.h5 -> build\lib.win32-3.8\h5py\tests\data_files
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
Loading library to get build settings and version: hdf5.dll
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: Could not find module 'hdf5.dll' (or one of its dependencies). Try using the full path with constructor syntax.
----------------------------------------
ERROR: Failed building wheel for h5py
ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
I already tried different solutions like downgrading my Python interpreter from 3.9 to 3.7, updating pip to a newer version, but nothing worked so far. Now I'm totally stucked.
Make sure you have 64bit python install.
This error can be because of old pip version. Upgrade pip:
pip3 install --upgrade pip
then try to install h5py directly:
pip install h5py
And reinstall Keras:
pip install keras

Categories

Resources