VS code tool chain installer problem with pip when creating virtual python environment
Posted: Sat Dec 19, 2020 11:52 pm
Hi,
I have tried the new plugin for Visual Studio code, it is really promising but unfortunately I get an error related with one of the packages:
_openssl.c
C:\Python37\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
=============================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.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
=============================DEBUG ASSISTANCE=============================
----------------------------------------
Failed building wheel for cryptography
Command "c:\esp\tools\.espressif\python_env\idf4.2_py3.7_env\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Jose\\AppData\\Local\\Temp\\pip-install-pn7h479i\\cryptography\\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\Jose\AppData\Local\Temp\pip-record-2_ugakdh\install-record.txt --single-version-externally-managed --compile --install-headers c:\esp\tools\.espressif\python_env\idf4.2_py3.7_env\include\site\python3.7\cryptography" failed with error code 1 in C:\Users\Jose\AppData\Local\Temp\pip-install-pn7h479i\cryptography\
You are using pip version 10.0.1, however version 20.3.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Command failed: "c:\esp\tools\.espressif\python_env\idf4.2_py3.7_env\Scripts\python.exe" -m pip install -r "C:\Users\Jose\esp-idf\requirements.txt"
I have debugging the problem and I see that every time that I execute the Download button of the IDF tools the installer DELETE the existing python environment and overwrite the content (always with the old version of pip) so even if I upgrate pip properly doesn't have any effect because will be overwritted. BTW my normal python 3.7 has the last version of Pip.
So I really dont know how what so do now...
Any ideas?
Thanks!
I have tried the new plugin for Visual Studio code, it is really promising but unfortunately I get an error related with one of the packages:
_openssl.c
C:\Python37\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
=============================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.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
=============================DEBUG ASSISTANCE=============================
----------------------------------------
Failed building wheel for cryptography
Command "c:\esp\tools\.espressif\python_env\idf4.2_py3.7_env\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Jose\\AppData\\Local\\Temp\\pip-install-pn7h479i\\cryptography\\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\Jose\AppData\Local\Temp\pip-record-2_ugakdh\install-record.txt --single-version-externally-managed --compile --install-headers c:\esp\tools\.espressif\python_env\idf4.2_py3.7_env\include\site\python3.7\cryptography" failed with error code 1 in C:\Users\Jose\AppData\Local\Temp\pip-install-pn7h479i\cryptography\
You are using pip version 10.0.1, however version 20.3.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Command failed: "c:\esp\tools\.espressif\python_env\idf4.2_py3.7_env\Scripts\python.exe" -m pip install -r "C:\Users\Jose\esp-idf\requirements.txt"
I have debugging the problem and I see that every time that I execute the Download button of the IDF tools the installer DELETE the existing python environment and overwrite the content (always with the old version of pip) so even if I upgrate pip properly doesn't have any effect because will be overwritted. BTW my normal python 3.7 has the last version of Pip.
So I really dont know how what so do now...
Any ideas?
Thanks!