I have a problem with the installation of python-xlwt in Odoo 10. I have installed Odoo10 in CentOS. I have installed it with pip install xlwt, but it’s installed the version 1.0.0 and, in the archive requirements of Odoo 10, put to need the version 1.1.2. How can I resolve this problem?
Here is my configuration:
Name : python-xlwt
Arch : x86_64
Version : 1.0.0
Release : 1.el6
Size : 180 k
Repo : forensics
Summary : python-xlwk - a library to generate spreadsheet files compatible with
: Microsoft Excel versions 95 to 2003
URL : http://pypi.python.org/pypi/xlwt
License : GPL
Description : python-xlwk is a library for generating spreadsheet files that are
: compatible with Excel 97/2000/XP/2003, OpenOffice.org Calc, and
: Gnumeric. xlwt has full support for Unicode. Excel spreadsheets can be
: generated on any platform without needing Excel or a COM server. The
: only requirement is Python 2.3 to 2.6. xlwt is a fork of pyExcelerator.
You can install specific version of any python library using pip as like below.
If you want to install xlwt version 1.1.2 then you need to execute command as like below.
sudo pip install xlwt==1.1.2
It will install xlwt with version 1.1.2 and if already installed with old version then system will upgrade it and if already installed with newest version then system will downgrade it.
Related
I am using the Graphical Interface of Anaconda. I tried to install py-xgboost but it gave me the following error-
*UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
py-xgboost -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.*
It says I have python 3.8 installed in my system but when I checked the python version on my system using the command python2 --version & python3 --version it says I have python 2.7.16 & python 3.7.3
I dont have python 3.8
What shall I do now? The above python version were there already. I never installed and someone told me not to remove those versions as some of the MAC applications are dependent on them. Its a MAC BOOK PRO 15 ( 2019 )
After some research I found a solution. I had to downgrade my python version.
But as explained above when I tried to check the version of python I am using I was getting 2.7 & 3.7.3 but my ANACONDA gives an error that I have version 3.8
That was because Anaconda uses the python which is installed in a separate directory, it was not using the python installed at the PATH directory. So I had to downgrade python which the ANACONDA was using by using the command -
conda search python
BTW if your terminal says conda command not found, then you need to edit your PATH first.
Then it gives a list of python version, you can then see which version is right for your XGboost version and then use the command-
conda install python=3.7.7
or whatever version you wanted to use.
After the downgrade of python, anaconda will ask you to downgrade other libraries as well, so go ahead and do that too unless you are using some command which was not there in the older version.
Now install py-xgboost from ANACONDA Graphical interface or by using conda method
conda install -c anaconda py-xgboost
My Python application uses the pymssql module to connect and edit SQL data in forms. I upgraded to Python 3.7 and I receive the following error:
"DLL load failed: %1 is not a valid Win32 appication."
I have the 64bit win32 version of Python 3.7. I can't seem to resolve this. Does pymssql work with Python 3.7?
I uninstalled and reinstalled both Python and pymssql to ensure I have latest version.
The fix was to completely unisntall Python 3.7 and pip, then delete the Python folder, and reinstall. I used the advanced install settings which puts Python in C:\Program Files. The only difference now is I need admin permissions to pip install/update etc but that's ok.
Installation of spacy-lefff v. 0.3.3 makes it impossible to run a Python program with module Spacy (v. 2.1.1)
The root problem seems to be the modules thinc and cymem. I tried to unstalled thinc and cymem but i don't know which version of thinc and cymem to reinstall afterwords.
There is no indication of the problem at https://github.com/sammous/spacy-lefff
There is an indication that "spacy-lefff requires spacy <= v2.0.12".
I tried to downgrade to spacy v. 2.0.12 but my code is not working because of modules thinc and cymem.
Operating System : Win 10
Python version : 3.7-2
Spacy version used : 2.1.1
Lefff version used : 0.3.3.
Thanks
Im trying to install tensorflow on Anaconda that supports python 2.7, I did as the manual given on the tensorflow homepage told me to do, and this error occurs every time.
UnsatisfiableError: The following specifications were found to be in conflict:
- python 2.7*
- tensorflow -> protobuf ==3.1.0 -> python 3.5*
Use "conda info " to see the dependencies for each package.
could you help me out??
and this is my conda info
conda info
Current conda install:
platform : win-64
conda version : 4.3.7
conda is private : False
conda-env version : 4.3.7
conda-build version : 2.0.2
python version : 2.7.12.final.0
requests version : 2.12.4
root environment : C:\Users\sml\Anaconda2 (writable)
default environment : C:\Users\sml\Anaconda2\envs\tensoflow
envs directories : C:\Users\sml\Anaconda2\envs
package cache : C:\Users\sml\Anaconda2\pkgs
channel URLs : https://repo.continuum.io/pkgs/free/win-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/win-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/win-64
https://repo.continuum.io/pkgs/pro/noarch
https://repo.continuum.io/pkgs/msys2/win-64
https://repo.continuum.io/pkgs/msys2/noarch
config file : None
offline mode : False
user-agent : conda/4.3.7 requests/2.12.4 CPython/2.7.12 Windows/10 Windows/10.0.14393
As said in the comments, on Microsoft Windows TensorFlow only runs on Python 3.5 64-bit.
Python 2.7 is unsupported because TensorFlow uses many C++11 features (e.g., auto), but the version of the Microsoft Visual C++ Compiler used for Python 2.7 is 2008.
Related Question 1
Related Question 2
[Error Log]
C:\Users\Hima\Documents\Installers\python\packages>python -m pip install lxml-3.4.4-cp34-none-win_amd64.whl
lxml-3.4.4-cp34-none-win_amd64.whl is not a supported wheel on this platform.
[Environment]
Windows x86 (64-bit)
Installed Visual Studio C++ 2014
Python 3.4
I use pip (or pip3.4.exe; built-in to Python 3.4) to pip install lxml
[Issues]
1. The lxml file from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml shows as not supported.
2. In the following Package Index for lxml, there isn't a suitable lxml file for 64 bit and Python 3.4.
https://pypi.python.org/pypi/lxml/3.4.4
I have been struggling with this today. I found, elsewhere on stackoverflow.com, this two-part and quick solution, which resulted in python no longer complaining when I tried to use lxml:
Go to this repository and download a version which matches your Python installation (the version number, and 32- vs 64-bit. I use Python 3.5.1 64-bit, installed on Windows 10, so on that page, I chose lxml-3.6.0-cp35-cp35m-win_amd64.whl.
You say you use Python 3.4, so use a version that matches that (or maybe the one you already have).
There is some helpful information at the top of the page about which version of CPython the files are built against.
The output of python -v will also tell you which version of MSVC++ was used to build your version of the python executable.
This answer is useful for determining MSVC versions from the output of python -v (which contains a build number instead of a version number).
My download directory is d:\Downloads. Python must be in your PATH environment variable for the next step to work. Use a command like the following, changing "D:\Downloads" to the pathname to your download directory. Then, at a DOS prompt, type:
python -m pip install "D:\Downloads\lxml-3.6.0-cp35-cp35m-win_amd64.whl" lxml-3.6.0-cp35-cp35m-win_amd64.whl
My config:
Python 3.5
Windows 10
Downloaded lxml-3.6.0-cp35-cp35m-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
Copy this file to: c:\Program Files\Python35\
first in cmd line:
c:\Program Files\Python35>py -m pip install --upgrade pip
Then in cmd line:
c:\Program Files\Python35>py -m pip install lxml-3.6.0-cp35-cp35m-win_amd64.whl
And it's done