I recently had to downgrade my python version from 3.8 to 3.6. All of a sudden I'm getting No module named 'onnx.onnx_cpp2py_export' errors which (according to a quick google) are the result of some old packages being installed under 3.8 and not properly downgraded to 3.6. How can I fix all these package version errors?
Is there a simple command for me to view which python version each package was installed under? Is there a simple command for pip to try and resolve all versions on its own?
Related
I am trying to compile a python program (by running "python file.py"), but it gives me the error of "No module named open3d". I have installed open3d on my Mac system using "pip3 install open3d-python". I am also running python 3.10.4 64 bit.
I reinstalled python 3.10 and that comes with pip, so I am pretty sure that when I use pip to install packages they go in the same place. My vscode also doesn't show any errors when I am interpreting using 3.10, unlike 3.9 where there are yellow squiggles below my import line.
I have looked at other posts about a module not found but their fixes don't seem to work for me.
open3d library is currently not available for python version 3.10. I am solve it by installing with python 3.8.
The supported environment for open3d:
Supported Python versions:
3.6
3.7
3.8
3.9
Supported operating systems:
Ubuntu 18.04+
macOS 10.15+
Windows 10 (64-bit)
If you have other Python versions or operating systems, please refer to Build from source and compile Open3D from source.
Why did you install open3d with pip3 install open3d-python?
The official instruction gives pip3 install open3d.
Did you run your python via python in cmd? Maybe trying python3 could help.
pip install open3d work for me.
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.
I am using Python 3.8 and its unable to install .whl from dist folder.
Presidio-analyzer is asking for grpcio==1.21.0 but it not able install in Python 3.8.
I ran into this issue as well with Win10 + Python 3.8. It looks like older versions of grpcio had installation issues with Python 3.8 on Windows but should be fine on Python 3.7 or 3.6.
Although the newer versions of grpcio (v1.34.0 being the latest) have done away with those issues and install without errors on Python 3.8, there is a hardcoded dependency defined in presidio-analyzer's setup.py on v1.21.1, removing which could fix the issue.
You can follow this GitHub issue for further updates: Microsoft/presidio#378
grpcio is no longer a dependency of presidio-analyzer, so installing the latest version should work for you.
I have python 3.6 and 3.8 on my machine. I initialize a pipenv with:
pipenv --python 3.8
I do this otherwise by default it initializes with 3.6
This works well. However, whenever I try to install a package (my use case was with aiohttp) I get the following error:
pipenv.patched.notpip._internal.exceptions.UnsupportedPythonVersion: dataclasses requires Python '>=3.6, <3.7' but the running Python is 3.8.0
I get this with:
pipenv install aiohttp
I then tried with a different package (tldextract) and got the same error message.
I can't find other references for this issue online.
Any help would be appreciated.
Thanks!
Python 3.8 is recent release python release and not every packages has support for it yet. Its clearly said in pip dataclasses requires Python '>=3.6, <3.7' but the running Python is 3.8.0, which means the Python 3.8 is not supported by these libraries yet.
If you see the pip page for aiohttp, Python3.8 is not yet supported. So please check for supported pip-packages before installing them.
I am trying to install hpelm on my machine via pip install hpelm but getting this error - image of the error thrown in commandline while installing. I tried lots of things to solve it like:
1.Installing anaconda
2.Uninstalling anaconda and installing python 3.7 (64-bit) from python.org and then installing numpy+mkl, scipy, scikitlearn from the windows binary hosted by Christoph Gohlke (link).
3.Installing numpy, scipy, scikit-learn via pip install 'package_name'
None of the above methods worked. I'm using Windows-10 (64-bit), Python 3.7.1 (64-bit). I have wasted hours on it. Is there something basic that I might be missing? I'm kinda new to this. Please help me install this package.
This is a problem with Python3.7, as seen in this Github thread. It works fine if you try on Python 3.6. I installed it fine on Python3.6.7.