protobuf, and tensorflow installation, which version to choose - python

I already installed python3.5.2, tensorflow(with python3.5.2).
I want to install protobuf now. However, protobuf supports python3.5.0; 3.5.1; and 3.6.0
I wonder which version should I install.
My question is should I upgrade python3.5.2 to python3.6, or downgrade it to python3.5.1.
I see some people are trying downgrade python3.6 to python3.5
I googled how to change python3.5.2 to python3.5.1, but no valuable information. I guess this is not usual option.

So it is version problem
one google post says change python version to a more general version.
I am not sure how to change python3.5.2 to python3.5.1
I just installed procobuf3.6
I hope it works

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.

tensorflow installation in python 3.9.0(64 bit) and pip version 20.2.3 .?

I want to install TensorFlow, I have tried everything from reinstalling everything to trying different versions it doesn't help.
I have tried it with python 3.9.0 and pip version 20.0.3
Currently (1st of March, 2021), there is no official stable tensorflow version for the latest stable python 3.9.
However, nightly version of tensorflow supports python 3.9.
Simply pip install tf-nightly-gpu or pip install tf-nightly
Note, the library name is the same, e.g. importing works as import tensorflow as tf without any problems. This means you will not have to update your code once official support is added and you've migrated to the stable version.
The Official TensorFlow website specifies python 3.5-3.8.
You need to create a new environment as suggested in the previous answer with a new version of python, or uninstall python 3.9 and install other version. I use python 3.6.8 for Tensorflow and it works great.
I had the similar problem but I am able to resolve it by downloading the python version 3.8.6 and installing it. Please pay attention to add the python and the respective pip path in the environment.
Then give the command, which will install tensorflow version 2.3.1
pip install tensorflow
You may upgrade the pip by following command,
py -m pip install --upgrade pip
I hope that it works for you.

Problems trying to install mingw python version

Greeting, I installed the mingw in MSYS2, but the python installed was the 3.8 version and I want to use TensorFlow with the GTK, but TensorFlow 2.0 is supported only with versions 3.6 and 3.7.
So, how should I install the python with a specific version? Spent a hour looking for the solving, but didn't find anything useful.
Thanks
Go to mysys2 repo site, http://repo.msys2.org/msys/x86_64/
Download a copy of older version, for example, http://repo.msys2.org/msys/x86_64/python-3.6.6-1-x86_64.pkg.tar.xz
Install the package with pacman -U python-3.6.6-1-x86_64.pkg.tar.xz
I am not sure if you need to uninstall python3.8 first before running commands above.

How to manually remove pip on windows?

I am using Python 3.4 (I know it is deprecated, but don't have the power to upgrade version).
I had trouble installing some packages because of a old version of pip (1.5.6 I guess), so I went all
pip install -m pip
To upgrade version and... it broke.
Unfortunately, it installed the latest, incompatible 20.0.2 version, which now raises a RuntimeError asking me for Python 3.5, and now I'm stuck. I can't upgrade Python, I can't downgrade pip because it will not allow me to.
How can I remove or downgrade pip manually?
It is easier that it seems. You can actually use the same get-pip.py script used to install pip the first time.
The script, available here, actually contains a full working version of pip to be used to bootstrap the installation. This version is fully working, so it can be used to install packages with a different version that the one contained.
To solve, just use https://bootstrap.pypa.io/3.4/get-pip.py to recover a version of get-pip.py compatible with my python environment (note the 3.4 in the link) and run
get-pip.py pip==19.1.1
This removes the newer python version and installs the older one, restoring the usual functionalities.

Trouble installing QSTK on a MAC 10.7.5, probably because of an issue with python-dateutils and/or pandas 0.7.3

I am trying to install QSTK (http://wiki.quantsoftware.org/index.php?title=QSToolKit_Installation_Guide_Mac) on a Mac and am running to trouble. To make a long story short, i started with multiple versions of python on my mac (2.5, 2.6, 2.7, 3.3) and multiple modules (beautifulsoup, requests, etc). In my frustration after hours of trying to get QSTK up and running, i deleted everything python-related and tried to start over. I followed the directions on the QSTK install wiki (the link above), and when i got to step 7, which is to run this:
python QSTK-0.2.5/Examples/Validation.py
on the command line to see if the installation went ok, I get the following feedback from my terminal:
Numpy is installed and the version used is : 1.7.0
Please make sure you're using version >= 1.6.1
Matplotlib is installed and version is : 1.2.0
Please make sure you're using version >= 1.1.0
Please install python-dateutil via easy_install or some method!
Error : Please install Pandas 0.7.3
Error : Pandas can not be imported or not installed.
I found out I needed python-dateutil version 1.5 and not 2.0 (which is the latest), so i tried downgrading it, still no luck. I am very lost on what to do. Help please!
Note: I am a beginner programmer.
Try doing the installation with Homebrew. I assume you were using macports.
I ran into the same issue when installing QSTK.
uninstall macports, and install brew.

Categories

Resources