pip install error when I install fbprophet - pip

(I'm not good at English sorry)
I have an error when I install fbprophet for windows command.
I already installed pystan and cython.
I use Windows 10, python 3.9 version.
maybe, Am I having a problem with the compiler?
The error comment is (korea language in error is not really important thing), -->
=== error in building with wheel ===
ERROR: Command errored out with exit status 1:
command: 'c:\users\kstar\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py'"'"'; file='"'"'C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\kstar\AppData\Local\Temp\pip-wheel-b98qkky1'
cwd: C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78
Complete output (44 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
Traceback (most recent call last):
.
.
.
=== error in running setup.py ===
ERROR: Command errored out with exit status 1:
command: c:\users\kstar\appdata\local\programs\python\python39\python.exe -u -c import io, os, sys, setuptools, tokenize; sys.argv[0] = C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py; file=C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py;f = getattr(tokenize, '"'"'open, open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup());code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\kstar\AppData\Local\Temp\pip-record-avm6oqpp\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\kstar\appdata\local\programs\python\python39\Include\fbprophet'
cwd: C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78
Complete output (288 lines):
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_f5236004a3fd5b8429270d00efcc0cf9 NOW.
WARNING:pystan:MSVC compiler is not supported
stanfit4anon_model_f5236004a3fd5b8429270d00efcc0cf9_296405994888268896.cpp
c:\users\kstar\appdata\local\programs\python\python39\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION

following has worked for me before:
pip install localpip
localpip install fbprophet
from fbprophet import Prophet

Related

How to fix error "ERROR: Command errored out with exit status 1: python." when trying to install torch-sparse using pip

ERROR: Command errored out with exit status 1: 'E:\Hossein\Python\python Project\pythorch\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-jhzv1wn5\torch-sparse_4aec990c4f4d470caa0dfbf1c9b31f43\setup.py'"'"'; file='"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-jhzv1wn5\torch-sparse_4aec990c4f4d470caa0dfbf1c9b31f43\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Asus\AppData\Local\Temp\pip-record-dap1raq5\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\Hossein\Python\python Project\pythorch\venv\include\site\python3.9\torch-sparse' Check the logs for full command output.
WARNING: You are using pip version 21.1.2; however, version 23.0 is available.
You should consider upgrading via the 'E:\Hossein\Python\python Project\pythorch\venv\Scripts\python.exe -m pip install --upgrade pip' command.

Google Collab- Fbprophet installation error

Hello stack overflow community,
I'm trying to import Prophet from fbProphet and I got an error message so I tried to install fbProphet and received another error message.
Can someone help me please?
Building wheel for fbprophet (setup.py) ... error
ERROR: Failed building wheel for fbprophet
Running setup.py clean for fbprophet
Failed to build fbprophet
Installing collected packages: fbprophet
Running setup.py install for fbprophet ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6nhgip9q/fbprophet_f5a0de9add594fa0a47241ba6cb37d86/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6nhgip9q/fbprophet_f5a0de9add594fa0a47241ba6cb37d86/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-gqbipw4r/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/fbprophet Check the logs for full command output.
!pip install fbprophet

pip install lapjv failed

I installed under Python 3.6.13
I tried to install build tools or even uninstall VS and then reinstall it, but it didn't work. This problem always exists.
Running setup.py clean for lapjv
Failed to build lapjv
Installing collected packages: lapjv
Running setup.py install for lapjv ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\DeepBindff\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-lrnqbqb1\\lapjv_d7aa7e022bf14ef3b147d3c1a5d
34efe\\setup.py'"'"'; __file__='"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-lrnqbqb1\\lapjv_d7aa7e022bf14ef3b147d3c1a5d34efe\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file_
_) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Acer\AppData\Local\Temp
\pip-record-pyjon60w\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\DeepBindff\Include\lapjv'
cwd: C:\Users\Acer\AppData\Local\Temp\pip-install-lrnqbqb1\lapjv_d7aa7e022bf14ef3b147d3c1a5d34efe\
Complete output (5 lines):
running install
running build
running build_ext
building 'lapjv' 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/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\envs\DeepBindff\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-lrnqbqb1\\
lapjv_d7aa7e022bf14ef3b147d3c1a5d34efe\\setup.py'"'"'; __file__='"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-lrnqbqb1\\lapjv_d7aa7e022bf14ef3b147d3c1a5d34efe\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__
file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record
'C:\Users\Acer\AppData\Local\Temp\pip-record-pyjon60w\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\DeepBindff\Include\lapjv' Check the logs for full command out
put.

How to use pip-tools to install from a github repo?

Here is a line in a req.in file (for pip-compile) to get a package from a github repository:
-e git://github.com/dfrankow/django-editorjs-fields.git#egg=django-editorjs-fields
Running pip-compile req.in gives a req.txt with
-e git+git://github.com/dfrankow/django-editorjs-fields.git#egg=django-editorjs-fields
Using pip to install (pip install -r req.txt) gives this error:
ERROR: Command errored out with exit status 1:
command: .../.venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'.../.venv/src/django-editorjs-fields/setup.py'"'"'; __file__='"'"'.../.venv/src/django-editorjs-fields/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
cwd: .../.venv/src/django-editorjs-fields/
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'
I have setuptools (and in fact all the other libraries) installed. See, no errors:
$ .venv/bin/python -c 'import io, os, sys, setuptools, tokenize;'
$
If I install directly (without the -e) it works:
$ pip install git+git://github.com/dfrankow/django-editorjs-fields.git#egg=django-editorjs-fields
... (works)
But when I take the -e out of req.in, pip-compile complains:
$ pip-compile req.in
...
pip._internal.exceptions.InstallationError: Invalid requirement: 'git://github.com/dfrankow/django-editorjs-fields.git#egg=django-editorjs-fields' (from line 1 of req.in)
Hint: It looks like a path. File 'git://github.com/dfrankow/django-editorjs-fields.git#egg=django-editorjs-fields' does not exist.
What the heck, I'm trapped.
How do I put a github repo into req.in, compile it with pip-compile into req.txt, and pip install req.txt without errors?
I need it to work automatically because we have a toolchain that depends on it (github workflows, dependabot, ..).
I'm using python 3.9.1_2, pip 21.1.2, pip-tools 6.2.0 on OS X. Also happened with pip-tools 6.0.1 (not surprising).

Cant install Vowpal Wabbit on Mac

I am trying to install Vowpal Wabbit via pipenv install. But failed with the following error.
ERROR: Command errored out with exit status 1: /Users/johnchan/.local/share/virtualenvs/ATEC-s3CStNz5/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/6b/nnn57rdn6ps7h0pn78h8hnrm0000gp/T/pip-install-rjmca3xe/vowpalwabbit/setup.py'"'"'; __file__='"'"'/private/var/folders/6b/nnn57rdn6ps7h0pn78h8hnrm0000gp/T/pip-install-rjmca3xe/vowpalwabbit/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/6b/nnn57rdn6ps7h0pn78h8hnrm0000gp/T/pip-record-80qogib2/install-record.txt --single-version-externally-managed --compile --install-headers /Users/johnchan/.local/share/virtualenvs/ATEC-s3CStNz5/include/site/python3.8/vowpalwabbit Check the logs for full command output.
We just released version 8.9, which comes with binary wheels. If you try installing now it should be simpler:
pip install vowpalwabbit==8.9.0
If there are still issue can you provide the full log output?

Resources