How to downgrade to Python 3.4 from 3.5 - python

I want to install kivy (link here) to use for a project, however, when trying to use pip to install the packages it is dependent upon, I get the following error:
Could not find a version that satisfies the requirement kivy.deps.sdl2 (from versions: )
No matching distribution found for kivy.deps.sdl2
Further reading on kivy's website revealed that these libraries do not support Python 3.5 on windows 10 because of some kind of graphical bug. The website says you need python 3.4 in order to be able to install it.
Which brings the question: How do I install python 3.4 when I already have python 3.5?

If you have an Anaconda installation you can just type:
conda install python=3.4
And it installs 3.4, to re-install 3.5, it's
conda install python=3.5
It works in under a minute.

Uninstall Python 3.5 by going to control panel, uninstall a program, and then look for Python 3.5, click on it and press uninstall. After that download Python 3.4. I don't know any other ways but I think that should work.

I was able to install Python 3.4 in a separate directory and then just change the default interpreter in PyCharm to use the new directory containing 3.4 instead.

Related

How do I install python package tobii_research?

I am trying to install tobii_research for a project and I was following the instructions on http://developer.tobiipro.com/python/python-getting-started.html
I already have python 3.7.6 and pip 21.1.2 installed on my Mac.
When I run pip install tobii-research I get:
ERROR: Could not find a version that satisfies the requirement tobii_research (from versions: none)
ERROR: No matching distribution found for tobii-research
Was there something I forgot to install?
I can not for the life of me figure out how to install this manually either.
Help with pip, or installing manually would be greatly appreciated, but you might have to explain it to me like I am stupid.
Thanks in advance.
It appears that you are not running the correct python version for the versions of the package that are available. If you look at the wheel files available on the tobii-research Downloads page, the software is packaged for either python 2.7 or 3.6.
When trying to install this package myself, I get the same error message as you when trying to install it for python 3.8, but the package installs successfully with my python 2.7 installation.
I would recommend installing a compatible version of python and then running pip through that version using the following command:
[specific_python_installation] -m pip install tobii-research
Try doing it with pip again, but replace the underscore with a hyphen as shown below:
pip install tobii-research
I saw on the PyPi website that they only have it for Python 3.8, so I downloaded that Python version from their official website and installed it (do not add it to path).
Then, I created a virtual environment selecting 3.8 as the Python version (refer to this answer) and activated that virtual environment.
Finally, I run pip install tobii_research and it worked.
One thing that helped me - required Python version. For example, for the version 1.10.2 (which is current at the moment of writing this) only Python 3.10 is supported. Check the list of files distributed within this version.
I was able to install the package on Windows with Python 3.10 but on MacOS I had the same problem and wasn't able to resolve this - I assume it's a problem with the architecture, as there is no version for arm64 if you have a Mac with M1 processor.

Upgrade Python and all packages in anaconda base env

I am using anaconda and my current python version in it is Python 3.7.10.
I want to upgrade everything: anaconda, the python version (which includes a major version upgrade to 3.8, I read somewhere that that matters), and all anaconda packages within I want to upgrade too.
I want to do this in my base anaconda env i.e. just upgrade everything.
Of course I can do this by uninstalling and then downloading latest version and installing anaconda again. But I want to avoid complete reinstallation.
I was reading the answers here
Upgrade to python 3.8 using conda
but it's not clear to me... how does one do this update in his base env?
Side question: I see version 3.9.2 for Python available here: https://anaconda.org/anaconda/python but the current full download of anaconda includes just Python 3.8. Why is that difference?
How can I do so that I have the latest and greatest of all packages (incl. the python interpreter)? Should I go for Python 3.8 or 3.9? I guess if I install 3.9 some anaconda packages might not work, is that so?

python3 pip fails to install jupyter on windows 10

I want to install jupyter on Win 10. I have been using python on linux, but this is my first time on Win 10.
when I execute python -m pip install jupyter on administrator, I got errors like this:
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
any idea?
I have been able to get around this error by installing Anaconda, uninstalling Python 3.8.0 and installing Python 3.7.5 instead.
The Jupyter installation then ran successfully when I executed pip install jupyter with Git Bash in my C:\ drive using pip 19.2.3 (the default with Python 3.7.5).
For those who encounter this and need to use Python 3.8+, make sure to update you setuptools to version 42.0.0 (or later).
Install a version earlier than python 3.8 and the installation will work. Use CMD.
I had the same problem, I am using 64-bit windows 10 but downloaded the 32-bit python installer because it is the default that appears on the 'downloads' page on the python.org site. Uninstalled python 3.8.1, downloaded the 64-bit installer instead, and then ran 'pip install jupyterlab' using the pip version 19.2.3 that got installed with the 64-bit python instead of upgrading to pip version 19.3.1. So if you are running a 64-bit version of windows, make sure you download the 64-bit python installer!

How to use Gcovr Installed with pip on windows

So I followed this guide and managed to install Gcovr using pip (I already have Python installed along with Anaconda). I tried to use gcovr but this is what I got:
When I use pip list, Gcovr is already installed.
How do I use it?
I'm running Windows 7 64bit with Python 3.5.2 :: Anaconda 4.2.0 64bit
P.S:
I'm sorry if this has already been asked before but after searching around for days I've yet to found any solution to my problem.
Using gcovr 3.x is a bit more cumbersome on Windows because Windows doesn't seem to recognize the gcovr script as an executable. Instead: find out where gcovr was installed to (e.g. by running pip in --verbose mode), then explicitly invoke Python:
> python C:\path\to\gcovr
The path is probably something like C:\Python35\Scripts.
You can also write a batch file to wrap gcovr like this.
Please also consider updating (pip install -U gcovr), as gcovr 3.4 fixes some other bugs on Windows.
This installation issue will be fixed in the next release. If you want to, you can already install the development version directly from GitHub:
> pip install git+https://github.com/gcovr/gcovr.git

Can't install lxml with 32-bit python 2.7, on CentOS

I'm developing with Python on CentOS. Needed Python 2.7 for a certain project. Didn't want to mess with the existing Python 2.6 (64-bit) installation, so installed Python 2.7 (32-bit). Haven't had a problem up until now.
Now I need a new library: lxml. It's actually already installed in the default 2.6 installation, but I need it for Python 2.7. None of the existing installation instruction seem to work. Specifically, I can't use a package manager (for CentOS it's yum), because it is only updating things for the default 2.6 installation. And again, everything from yum is already complete because Python 2.6 already has lxml installed.
If I type in "pip install lxml" I get a ton of error messages but finally it says, "Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?"
Okay, fine. So if I type in "STATIC_DEPS=true pip install lxml", it just times out and fails to download the prerequisites.
Any solution, especially sticking just to pip?

Categories

Resources