I'm trying to run: from skforecast.ForecasterAutoreg import ForecasterAutoreg and i have this error "from skforecast.ForecasterAutoreg import ForecasterAutoreg
ModuleNotFoundError: No module named 'skforecast'"
I run C:\Users\Yanina\Prueba>pip3 install skforecast and this happens
building 'statsmodels.tsa._stl' 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 statsmodels
Failed to build statsmodels
ERROR: Could not build wheels for statsmodels, which is required to install pyproject.toml-based projects
WARNING: You are using pip version 22.0.4; however, version 22.2 is available.
You should consider upgrading via the 'C:\Users\Yanina\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.
When i run pip for pyproject.toml it apparently works just fine.
So i think the issue is with skforecast but i dont know how to fix it.
Related
I am trying to install quickfix 1.15.1 (the current latest version available) in MacOS.
OS version is Ventura 15.1. Chip is Apple M2.
Python version is 3.9.6. Clang version is 14.0.0.
But the installation gets failed.
The steps I followed is as follows.
Tried to install using pip3 install quickfix. It was not successful.
Downloaded the source package from pypi and tried to install the package using pip3 install . and pip3 install . --no-binary=:all --user --no-cache-dir. It was not successful.
Cloned the C++ quickfix source code from github and tried to install the library using the commands ./boostrap, ./configure --with-python3 and sudo make install. It was not successful too.
The error I get when trying to install the library in all the above three steps is as follows.
Processing /Users/user/Dependencies/quickfix-1.15.1
Preparing metadata (setup.py) ... done
Building wheels for collected packages: quickfix
Building wheel for quickfix (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─\> \[248 lines of output\]
Testing for std::tr1::shared_ptr...
test_std_tr1_shared_ptr.cpp:1:10: fatal error: 'tr1/memory' file not found
\#include \<tr1/memory\>
^\~\~\~\~\~\~\~\~\~\~\~
1 error generated.
...not found
Testing for std::shared_ptr...
...found
Testing for std::unique_ptr...
...found
C++/AtomicCount.h:163:11: error: unrecognized instruction mnemonic
"lock\n\t"
^
<inline asm>:1:2: note: instantiated into assembly here
lock
^
In file included from C++/DataDictionary.cpp:26:
In file included from C++/DataDictionary.h:30:
In file included from C++/FieldMap.h:30:
In file included from C++/MessageSorters.h:30:
In file included from C++/SharedArray.h:26:
C++/AtomicCount.h:163:18: error: unrecognized instruction mnemonic, did you mean: add, addp, adds, addv, fadd, madd?
"lock\n\t"
^
<inline asm>:2:2: note: instantiated into assembly here
xadd x9, [x8]
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for quickfix
Running setup.py clean for quickfix
Failed to build quickfix
Installing collected packages: quickfix
Running setup.py install for quickfix ... error
error: subprocess-exited-with-error
× Running setup.py install for quickfix did not run successfully.
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[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.
╰─> quickfix
note: This is an issue with the package mentioned above, not pip.
Went through different issue threads and docs, but could not find a solution yet. Found this similar stack overflow post as well. But a solution could not be found there too.
I just want to install psycopg2 and I get the following error message:
PS D:\Visualalize_data> pip3 install psycopg2
Collecting psycopg2
Using cached psycopg2-2.9.5.tar.gz (384 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: psycopg2
Building wheel for psycopg2 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
D:\Python\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running bdist_wheel
running build
g2._psycopg' 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 psycopg2
Running setup.py clean for psycopg2
Failed to build psycopg2
Installin
running build
legacy-install-failure
× Encountered error while trying to install package.
╰─> psycopg2
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
What I have already tried:
pip install nes-py --no-cache-dir
pip install --upgrade pip setuptools wheel
My system:
Windows 10
Python 3.10.2 64 Bit
Visual Studio Code
Have you tried doing what the messege tells you to and downloaded
Microsoft Visual C++ 14.0 or greater?
You can install it at "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
I`m trying to install bluepy with Python3.9.10 and pip 22.2 installed.
While doing that I keep getting the following output:
C:\Users\User>pip3 install bluepy
Collecting bluepy
Using cached bluepy-1.3.0.tar.gz (217 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for bluepy, since package 'wheel' is not installed.
Installing collected packages: bluepy
Running setup.py install for bluepy ... error
error: subprocess-exited-with-error
× Running setup.py install for bluepy did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
H:\Python39\lib\site-packages\setuptools\dist.py:717: 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 install
running build
running build_py
error: [WinError 2] The system cannot find the file specified
Working dir is C:\Users\User\AppData\Local\Temp\pip-install-zj6bo4s8\bluepy_8c28c6c23a27424498856c30a119129d
execute make -C ./bluepy clean
[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.
╰─> bluepy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
C:\Users\User>
I also tried the "solution" discussed in this comment of a similar question, but this did not work for me. I´ve also tried reinstalling python, alongside pip, even if the output from above says that it is not a problem with pip.
These are the packages I installed with the Visual Studio Installer:
Now I don`t know what else I should try.
Thanks
See this github issue:
bluepy only runs on linux
And also The README on github:
Python interface to Bluetooth LE on Linux
This is why you are unable to install it on windows
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation/ for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq/
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation/#rust
Python: 3.10.4
platform: Linux-4.9.190-perf-g56d95b3-armv8l-with-libc
pip: n/a
setuptools: 62.3.2
setuptools_rust: 1.3.0
=============================DEBUG ASSISTANCE=============================
error: cargo failed with code: 101
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
I'm trying to install cx_Oracle and I get this error,
I have the latest setuptools and pip installed.
Has anyone had a similar problem and how did they solve it?
I have VISUAL STUDIO: please see image
enter image description here
Processing c:\....resources\cx_oracle-8.1.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cx_Oracle
Building wheel for cx_Oracle (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cx_Oracle (pyproject.toml) did not run successfully.
¦ exit code: 1
?-> [7 lines of output]
C:\....\2\pip-build-env-806_5jc6\overlay\Lib\site-packages\setuptools\config\expand.py:144: UserWarning: File 'C:\\....\\2\\pip-install-r8jb3ohi\\cx-oracle_111cfa7e3d91425bb65e9a6baa89c82f\\README.md' cannot be found
warnings.warn(f"File {path!r} cannot be found")
running bdist_wheel
running build
running build_ext
building 'cx_Oracle' 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 cx_Oracle
Failed to build cx_Oracle
ERROR: Could not build wheels for cx_Oracle, which is required to install pyproject.toml-based projects
The image you showed has redistributables, not Visual Studio itself! You will need to follow the provided link to get the Microsoft build tools installed if you want to build it yourself.
If you use pip, however, you should be able to download and install prebuilt binaries -- which is a LOT easier! The command to use is:
python -m pip install cx_Oracle