How do I install python package tobii_research? - python

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.

Related

How do I install Apache Airflow on a Mac running Big Sur 11.0.1?

When I run pip3 install apache-airflow (I used brew install python to install the latest version of Python locally first), I get a number of errors while building wheels for psutil and setproctitle ending with the following:
ERROR: Could not build wheels for setproctitle which use PEP 517 and cannot be installed directly
Running the command with the --use-deprecated legacy-resolver indicated in the note on the start page has the same result.
What else am I missing that is preventing a successful install on Airflow on my machine?
Which python version do you have?
And what airflow version do you wish to install?
Since you said you've upgraded to the latest python version, I'm assuming you have 3.9.1. on your local machine.
Airflow is not supporting python 3.9 so you will need to use an older version of python.
I used python 3.7 to install airflow 1.10.10 (after which you can patch up to the latest version 2.0).
If using pip does not work (like what happened to me), try using pyenv to install python earlier versions. You might also (re)install zlib to get it to work brew reinstall zlib bzip2
Since I had no pyenv installed, I had to go through the pain of upgrading homebrew to be able to do this (see steps here in case you need it)

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 downgrade to Python 3.4 from 3.5

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.

can't install or-tools on mac 10.10

I'm trying to install Google's or-tools on mac 10.10 - https://code.google.com/p/or-tools/wiki/OrToolsWithPyPi .
I install using python2.7 setup.py install --user (tried also with sudo and without --user) but get the following when it goes to pypi to download the package:
.. Some other output ..
Installed /Users/Zach/Library/Python/2.7/lib/python/site-packages/ortools_examples-1.3549-py2.7.egg
Processing dependencies for ortools-examples==1.3549
Searching for ortools
Reading https://pypi.python.org/simple/ortools/
No local packages or download links found for ortools
error: Could not find suitable distribution for Requirement.parse('ortools')
I noticed that it creates the directory build/bdist.macosx-10.8-x86_64/egg in order to build everything in but I'm running macosx 10.10.
When looking in https://pypi.python.org/simple/ortools/ I can see a matching egg file for version 3549 but it's for macosx10.9, could that be the problem? Why does setup.py thinks I'm on 10.8?
Anyway, it might not be the problem, so any other help is very appreciated. Thanks!
Former solution (using easy_install and egg file)
I temporarily solve the problem of installing by installing or-tools using easy-install directly from the egg file (I use easy-install installed from MacPorts). Here is how I install it.
sudo easy_install-2.7 https://pypi.python.org/packages/2.7/o/ortools/ortools-1.3853-py2.7-macosx-10.9-intel.egg#md5=f1f23b375652d40b9fbce682302e8dc8
Here is the link address for or-tools egg file that I use: https://pypi.python.org/pypi/ortools/1.3853
It will give some warning but I can load or-tools in Python by using import ortools with no problem.
New solution (using pip)
I can now install ortools using pip. However, default protobuf version is 2.6.0 so I have to uninstall and reinstall new protobuf version that works with ortools (e.g. in this case, we will do 3.0.0b4).
pip install protobuf==3.0.0b4
pip install ortools
Note that ortools is only compatible with Python 2.6, 2.7, and 3.2 not 3.5 yet
Now or-tools support python 3.5 and python 3.6.
also please notice v6.6 will require protobuf 3.5
cf requirement https://github.com/google/or-tools/blob/master/Dependencies.txt

Robot Framework installation issue

Whenever i try to install Robot Framework. I am getting the error message below.
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
What is the issue?
I am installing robotframework-2.6.3.win32 with python2.7.2
I'm not sure what is causing your specific issue, but I find that using pip or easy_install works for installing robotframework and any plugins on windows
Do you change your installed Python folder name ? Please use internal set-up command line in Python for adding plugin.
I'm assuming from the win32 extension that this is for Windows. In which case I would suggest checking installing with pip which can be found in section 1.3.3
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html
Check if pip is installed with your python version
pip --version
Else use below link to install
https://pip.pypa.io/en/stable/installing/
once pip is installed , you can try to install robotframework with specific version like below
pip install MySQL_python==1.2.2
I'm not sure the cause for your issue. but you are trying to install an older version of Robot framework on an Older python build. I suggest you to try a newer version such as 'Robot Framework 3.2.2 (Python 3.7.9 on win32)'. Then, it's easy since pip is installed by default if you are using Python 2 >=2.7.9 or Python 3 >=3.4. (you can check by > "py -m pip --version")
Installing Robot Framework is just a two-step process now.
install python from https://www.python.org/downloads/
install robotframework from https://pypi.org/project/robotframework/ > "pip install robotframework" (You can check the version by > "robot --version")
Read more - https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#installation-instructions

Categories

Resources