errors when installing jupyter notebook on Windows 10 - python

I run pip install jupyter in command prompt, but I get the following error
building 'winpty.cywinpty' extension
error: Microsoft Visual C++ 14.0 is required. Get it with ...(a URL)
So I install the Visual Studio Build Tools 2017 15.8.1 with the default options selected, including the Windows 10 SDK (10.0.17134.0), but then when I run pip install jupyter I get another error:
cywinpty.c
winpty/cywinpty.c(598): fetal error C1083: Cannot include file: 'winpty.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------------------------------------------
Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\cyh\\AppData\\Local\\Temp\\pip-install-ffl96cvn\\pywinpty\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\cyh\AppData\Local\Temp\pip-record-1psgkfzm\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\cyh\AppData\Local\Temp\pip-install-ffl96cvn\pywinpty\
What are those errors and what should I do?
Thanks

Related

pip install - running build_ext error: [WinError 2] The system cannot find the file specified

I'm trying to install the dialogflow package in Pycharm virtual environment using pip:
pip install dialogflow
and it stops at this error:
running build_ext
error: [WinError 2] The system cannot find the file specified
'Command "C:\Users\mclovine\PycharmProjects\sunshinveconv\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\mclovine\\AppData\\Local\\Temp\\pip-install-zotus0_t\\grpcio\\setup.py';f=getattr(
tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\mclovine\AppData\Local\Temp\pip-record-ub03a865\install-record.txt --si
ngle-version-externally-managed --compile --install-headers C:\Users\mclovine\PycharmProjects\sunshinveconv\venv\include\site\python3.8\grpcio" failed with error code 1 in C:\Users\mclovine\AppData\Local\Temp\pip-instal
l-zotus0_t\grpcio\'
When I try the same installation in conda virtual environment, it works and there's no error.
I'm using: Windows64, Python 3.8.3, Visual C++ BuildTools 14.0
Any help would be appreciated, thank you
Downgrade to Python 3.7 works for me (ref: https://github.com/gunthercox/ChatterBot/issues/1699#issuecomment-680807921)

Fbprophet installation error - failed to setup

When I wanted to install Fbprophet, I got the error message. Please help.
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft
Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
Command "C:\Users\Ekin\Anaconda3\python.exe -u -c "import setuptools,
tokenize;file='C:\Users\Ekin\AppData\Local\Temp\pip-install-18154lmz\pystan\setup.py';f=getattr(tokenize,
'open', open)(file);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, file, 'exec'))" install
--record C:\Users\Ekin\AppData\Local\Temp\pip-record-73_kkd1_\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users\Ekin\AppData\Local\Temp\pip-install-18154lmz\pystan\

installing magic-wormhole gives error code 1

when doing pip install magic-wormhole
It gives the following error
Command "c:\users\[Censured]\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\[Censured]\\AppData\\Local\\Temp\\pip-install-c9sttv8x\\twisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\[Censured]\AppData\Local\Temp\pip-record-7opo58sr\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\[Censured]\AppData\Local\Temp\pip-install-c9sttv8x\twisted\
Full log here: https://pastebin.com/iGVT5GyZ
In the very end of logs you will find lines:
Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools":
So, you have to download and install it.
It is available from official site: https://visualstudio.microsoft.com/ru/visual-cpp-build-tools

Error while installing notebook using pip

note: I am on linux(ubuntu,mint)
I am trying to install jupyter. But after some searching I realised that the error I have when trying to install jupyter is due to notebook.
So here is the error I have when trying to install notebook using sudo pip install notebook.
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-EKmj0F/scandir/setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();
exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-OB5xPr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-EKmj0F/scandir/
If you want here is the whole output of pip install notebook.
Thank for answers in advance.
This is the relevant part of the error message:
_scandir.c:14:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
You need the Python headers:
sudo apt-get install python-dev
Your installation process tries to compile an extension with gcc and you seem to be missing the necessary decencies.

Problems installing gx_freeze

I have Ubuntu 14.04 LTS with Python 2.7.6, and I want to install cx_Freeze. I used the command:
pip install cx_Freeze
and I got the error:
fatal error: Python.h: No such file or directory compilation terminated.
so I did:
sudo apt-get install python-dev
but now I'm getting:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_emanuele/cx-Freeze/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Hd6_EY-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_emanuele/cx-Freeze
Storing debug log for failure in /home/emanuele/.pip/pip.log
what does it mean this error and how can I fix it?

Categories

Resources