I am trying to install Pandas module in Python version 3.4 (for Windows XP support). However, I am getting following error:
UPDATING build\lib.win32-3.4\pandas/_version.py
set build\lib.win32-3.4\pandas/_version.py to '0.22.0'
running build_ext
building 'pandas._libs.tslibs.strptime' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
----------------------------------------
Command "C:\Python34\python.exe -u -c "import setuptools, tokenize;
__file__='C:\\users\\cardio\\Temp\\pip-build-5xhz4ymf\\pandas\\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\cardio\Temp\pip-prngb6r2-record\install-record.txt
--single-version-externally-managed --compile"
failed with error code 1 in C:\users\cardio\Temp\pip-build-5xhz4ymf\pandas\
How can this problem be solved?
Related
I'm trying to install tf-models-official on a PC with Windows 10.
When I run pip install tf-models-official on the command prompt, I get the following error
Building wheel for pycocotools (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\iavta\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\iavta\\AppData\\Local\\Temp\\pip-install-0twx2hmy\\pycocotools_ebdc747cefa04c81a8aab51eebf9fe53\\setup.py'"'"'; __file__='"'"'C:\\Users\\iavta\\AppData\\Local\\Temp\\pip-install-0twx2hmy\\pycocotools_ebdc747cefa04c81a8aab51eebf9fe53\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\iavta\AppData\Local\Temp\pip-wheel-60i3880o'
cwd: C:\Users\iavta\AppData\Local\Temp\pip-install-0twx2hmy\pycocotools_ebdc747cefa04c81a8aab51eebf9fe53\
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\__init__.py -> build\lib.win-amd64-3.8\pycocotools
running build_ext
cythoning pycocotools/_mask.pyx to pycocotools\_mask.c
C:\Users\iavta\anaconda3\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\iavta\AppData\Local\Temp\pip-install-0twx2hmy\pycocotools_ebdc747cefa04c81a8aab51eebf9fe53\pycocotools\_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' 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: Failed building wheel for pycocotools
Running setup.py clean for pycocotools
Successfully built termcolor
Failed to build pycocotools
I've already done pip install pycocotools-windows and I had no problems whatsoever during installation, and according to Vision Studio Installer, I have Visual Studio 2019 version 16.11.3 already installed. So, I have no idea why they ask me for Microsoft Visual C++ 14.0 or greater.
I solved the annoying "failed building wheel for pycocotools" issue on windows 10 anaconda (python=3.9) by:
Uninstall Visual Studio 2019;
Uninstall all Visual C++ Redistributable (2015-2019, 2013, 2012, etc.);
Install Visual Studio 2022, and tick Desktop development with C++.
Activate the new virtual environment, and run "pip install tf-models-official".
I have some problems to install Odoo Module named ODOO BRASIL - MODULO BASE (br_base).
The error message is:
O módulo "br_base" não pode ser instalado porque uma dependência
externa não foi encontrada: No module named pytrustnfe.nfe
Translating:
The module "br_base not be installed because external dependency not
founded: No module named pytrustnfe.nfe
If you are using Linux:
pip install PyTrustNFe
The dependency of PyTrustNFe called xmlsec didn't installed. When I try install this dependency I had this.
[root#agileweb ~]# pip install xmlsec
Collecting xmlsec
Using cached https://files.pythonhosted.org/packages/35/42/d7cd323c91d4706f3cc32ffe7d5f851ab8ef9898ccb350f6ba593dd8b89a/xmlsec-1.3.3.tar.gz
Requirement already satisfied: pkgconfig in /usr/lib/python2.7/site-packages (from xmlsec) (1.3.1)
Requirement already satisfied: lxml>=3.0 in /usr/lib64/python2.7/site-packages (from xmlsec) (3.7.1)
Building wheels for collected packages: xmlsec
Running setup.py bdist_wheel for xmlsec ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-sk_Ibz/xmlsec/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-Vx1fna --python-tag cp27:
running bdist_wheel
running build
running build_ext
*********************************************************************************
Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed?
*********************************************************************************
----------------------------------------
Failed building wheel for xmlsec
Running setup.py clean for xmlsec
Failed to build xmlsec
Installing collected packages: xmlsec
Running setup.py install for xmlsec ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-sk_Ibz/xmlsec/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-record-qiBfpy/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
*********************************************************************************
Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed?
*********************************************************************************
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-sk_Ibz/xmlsec/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-record-qiBfpy/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-sk_Ibz/xmlsec/
The correct command to solve this problem would be PIP3 since this dependency is getting deprecated in python2.7
pip3 install PyTrustNFe3==1.0.35
I have tried pip install numpy and pip install numpy==1.13.3 and I keep getting this error:
Command "/home/pi/.virtualenvs/venv_python36/bin/python3.6 -u -c
"import setuptools,
tokenize;__file__='/tmp/pip-build-f4w3ieb6/numpy/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-ngusfvpy-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/.virtualenvs/venv_python36/include/site/python3.6/numpy"
failed with error code 1 in /tmp/pip-build-f4w3ieb6/numpy/
It works fine on python 3.5
Full log: https://pastebin.com/Jah0FVcc (too long to post)
pip install -U setuptools fixed the problem and I was able to install numpy without issues
How can I avoid this error?
running build_ext
error: [Error 5]
----------------------------------------
Command "C:\Python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\admini~1\\appdata\\local\\temp\\pip-build-zc67ii\\Twisted\\setup.py';f=g
etattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.c
lose();exec(compile(code, __file__, 'exec'))" install --record c:\users\admini~1
\appdata\local\temp\pip-pxb6xl-record\install-record.txt --single-version-extern
ally-managed --compile" failed with error code 1 in c:\users\admini~1\appdata\lo
cal\temp\pip-build-zc67ii\Twisted\
C:\Users\Administrator>
Installing Scrapy on Windows can be a real struggle.
That's why the scrapy documentation recommands to use Anaconda for the scrapy installation. I think you should give it a try if you are working on Windows.
First you need to install Anaconda following this tutorial.
Then you just need to run this command conda install -c conda-forge scrapy
and you are good to go.
My OS is Ubuntu 14.04. I want to install TensorFlow in anaconda2 and I am not using root. I downloaded anaconda2 and installed in /usr/anaconda2. I typed the following command:
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
but in /usr/anaconda2/bin/python, I cannot import TensorFlow. I found that sudo pip installs the TensorFlow in Ubuntu default python2.7.6, so I tried installing it without sudo, but:
running build_scripts
creating build/scripts.linux-x86_64-2.7
Creating build/scripts.linux-x86_64-2.7/f2py
adding 'build/scripts.linux-x86_64-2.7/f2py' to scripts
changing mode of build/scripts.linux-x86_64-2.7/f2py from 664 to 775
running install_lib
creating /usr/anaconda2/pkgs/lib
error: could not create '/usr/anaconda2/pkgs/lib': Permission denied
----------------------------------------
Command "/home/ds/.conda/envs/tensorflow_env/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-THK_wR/numpy/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-znMmTV-record/install-record.txt --single-version-externally-managed --compile --prefix=/usr/anaconda2/pkgs" failed with error code 1 in /tmp/pip-build-THK_wR/numpy/
I have no Permission to write file in /usr/anaconda2. What should I do?
Anaconda comes with its own package manager called conda,to install a package on Anaconda environment and not the default python do
conda update conda
conda install <package name>
in your case:
conda install -c conda-forge tensor flow
or you could just add the channel first:
conda config --add channels conda-forge
then install by:
conda install tensorflow