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.
Related
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?
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 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?
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)
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.