It is not possible for me to install the python library 'traffic' and get it running.
I'm trying to install the traffic library for python. So far, nothing has worked out.
When using pip install traffic the error "Could not build wheels for Cartopy, which is required to install pyproject.toml-based projects" is generated.
The command conda create -n traffic -c conda-forge python=3.9.7 traffic the installation is running several hours and evetually terminated.
I already downloaded Microsoft Visual Studio and ran conda create ... in there. The same error message came up.
Does anyone know how to install the traffic library
Related
I'm trying to install a package on Python, but Python is throwing an error on installing packages. I'm getting an error every time I tried to install pip install google-search-api.
Here is the error how can I successfully install it?
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
I already updated that and have the latest version of 14.27 but the problem is throwing the same error.
Go to this link and download Microsoft C++ Build Tools:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
Open the installer, then follow the steps.
You might have something like this, just download it or resume.
If updating above doesn't work then you need to configure or make some updates here. You can make some updates here too by clicking "Modify".
Check that and download what you need there or you might find that you just need to update Microsoft Visual C++ as stated on the error, but I also suggest updating everything there because you might still need it on your future programs. I think those with the C++ as I've done that before and had a similar problem just like that when installing a python package for creating WorldCloud visualization.
UPDATE: December 28, 2020
You can also follow these steps here:
Select: Workloads → Desktop development with C++
Then for Individual Components, select only:
Windows 10 SDK
C++ x64/x86 build tools
You can also achieve the same automatically using the following command:
vs_buildtools.exe --norestart --passive --downloadThenInstall --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools
Reference:
https://www.scivision.dev/python-windows-visual-c-14-required
2020 - redist/build tools for Visual C++
silent installs can be done using the following two commands :
vs_buildtools__370953915.1537938681.exe --quiet --add Microsoft.VisualStudio.Workload.VCTools
and
VC_redist.x64.exe /q /norestart
Upgrade your pip with: python -m pip install --upgrade pip
Upgrade your wheel with: pip install --upgrade wheel
Upgrade your setuptools with: pip install --upgrade setuptools
Close the terminal
Try installing the package again.
I tried everything and then finally, downgrading from python 3.10 to 3.9 is what worked. (I noticed it in this comment, but it is a bit different scenario: https://stackoverflow.com/a/70617749/17664284 )
check if no older version of Microsoft Visual C++ are installed. If so uninstall them.
I encounered the above-mentionned problem when using virtualenv. Using conda environment instead solved the problem. Conda automatically installs vs2015_runtime which compiles the wheels with no problem.
In addition to the verified answer by #ice bear, just make sure to reboot your system after downloading and installing the latest visual studio build tools. And then the error you might be getting would go!
Tried Prason's approach. Also tried the fix suggested here
conda install -c conda-forge implicit
pip install --upgrade gensim
here is my error ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects
download whl https://www.lfd.uci.edu/~gohlke/pythonlibs/#multidict
pip install multidict-6.0.2-py3-none-any.whl
pip install httpie
I am trying to install many jupyter lab extension and always receive this error:
ValueError: Please install Node.js and npm before continuing installation. You may be able to install Node.js from your package manager, from conda, or directly from the Node.
js website (https://nodejs.org).
After a little bit of digging, I find out that I need to have nodejs and npm. However, after success fully installed both of them through pip, I still cannot run jupyter lab build. Some people say it's because nodejs must be installed through conda for it to be working properly.
Does anyone have any idea how I can still have nodejs and npm working without having had to install Conda? I am running on Windows btw.
I solved this issue by:
Installing Node.js on my machine (Windows).
Re-starting my computer.
After this, I was able to run jupyter labextension install without having conda installed.
I'm trying to install a package on Python, but Python is throwing an error on installing packages. I'm getting an error every time I tried to install pip install google-search-api.
Here is the error how can I successfully install it?
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
I already updated that and have the latest version of 14.27 but the problem is throwing the same error.
Go to this link and download Microsoft C++ Build Tools:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
Open the installer, then follow the steps.
You might have something like this, just download it or resume.
If updating above doesn't work then you need to configure or make some updates here. You can make some updates here too by clicking "Modify".
Check that and download what you need there or you might find that you just need to update Microsoft Visual C++ as stated on the error, but I also suggest updating everything there because you might still need it on your future programs. I think those with the C++ as I've done that before and had a similar problem just like that when installing a python package for creating WorldCloud visualization.
UPDATE: December 28, 2020
You can also follow these steps here:
Select: Workloads → Desktop development with C++
Then for Individual Components, select only:
Windows 10 SDK
C++ x64/x86 build tools
You can also achieve the same automatically using the following command:
vs_buildtools.exe --norestart --passive --downloadThenInstall --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools
Reference:
https://www.scivision.dev/python-windows-visual-c-14-required
2020 - redist/build tools for Visual C++
silent installs can be done using the following two commands :
vs_buildtools__370953915.1537938681.exe --quiet --add Microsoft.VisualStudio.Workload.VCTools
and
VC_redist.x64.exe /q /norestart
Upgrade your pip with: python -m pip install --upgrade pip
Upgrade your wheel with: pip install --upgrade wheel
Upgrade your setuptools with: pip install --upgrade setuptools
Close the terminal
Try installing the package again.
I tried everything and then finally, downgrading from python 3.10 to 3.9 is what worked. (I noticed it in this comment, but it is a bit different scenario: https://stackoverflow.com/a/70617749/17664284 )
check if no older version of Microsoft Visual C++ are installed. If so uninstall them.
I encounered the above-mentionned problem when using virtualenv. Using conda environment instead solved the problem. Conda automatically installs vs2015_runtime which compiles the wheels with no problem.
In addition to the verified answer by #ice bear, just make sure to reboot your system after downloading and installing the latest visual studio build tools. And then the error you might be getting would go!
Tried Prason's approach. Also tried the fix suggested here
conda install -c conda-forge implicit
pip install --upgrade gensim
here is my error ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects
download whl https://www.lfd.uci.edu/~gohlke/pythonlibs/#multidict
pip install multidict-6.0.2-py3-none-any.whl
pip install httpie
I am trying to install jaxlib on my windows 10 by the following command which I found on the documentation..
pip install jaxlib
It shows the following error
Collecting jaxlib
Could not find a version that satisfies the requirement jaxlib (from versions: None)
No matching distribution found for jaxlib
Thanks to cloudhan's jax-windows-builder, it is now rather easy to install JAX and jaxlib on windows. E.g.
pip install jax==0.3.13 https://whls.blob.core.windows.net/unstable/cuda111/jaxlib-0.3.7+cuda11.cudnn82-cp38-none-win_amd64.whl
That's all.
As explained there, I had to copy the jaxlib's link address of the whl file I was interested in, i.e. the https://whls.blob.core... above).
But I also had to take care that JAX's version and Jaxlib's were compatible, which compatibility is easy to assess at github.com/google/jax/releases: just pick the last two of each (!)the version numbers! nothing to download from there.
tested with the versions explicited above. I.e. python3.8-64 & jax==0.3.13 & jaxlib-0.3.7
Jaxlib is not supported on windows you can see it here..
https://github.com/google/jax/issues/438
I went through the process the last two days myself so here is what i did:
download and install the latest version of microsoft visual studio (
to get a c++ compiler and toolchain)
download and install python
create a virtual python environment with the packages pip, setuptools, six, wheel and numpy (i did it in the GUI of pycharm)
download jax
open up a windows powershell as administrator, change to the jax directory and complete the following steps (commands are in quotes)
install chocolatey (package manager for easy bazel installation)
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol =
[System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex
((New-Object
System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
install bazel (for building jaxlib)
choco install bazel
install msys2 (linux utilities for bazel)
choco install msys2
permamently link the python environment in your powershell
[System.Environment]::SetEnvironmentVariable("PATH", $Env:Path +
";C:\path\to\venv", "Machine")
still beeing in the jax folder in powershell actually build and compile jax
./build/build.py
after installation execute the command you're ask to to install jaxlib, it's something like
pip install c:\...\jax\dist\jaxlib-0.1.72-cp39-none-win_amd64.whl
and finally install jax with it
pip install -e .
This way it worked for me, since the documentation on the jax homepage utterly confused me.
JAX does not provide jaxlib builds for Windows at this moment of time.
Issue 1, issue 2
But you can build it yourself if you wish.There are some comments in the above issue that might help you.
This worked for me:
powershell -ExecutionPolicy ByPass -NoExit -Command "& 'C:\users\<username>\Anaconda3\condabin\conda_hook.bat' ; conda activate <yourcondaEnvironment>"
I saw that failure to build wheel atari-py, pachi-py was a common problem people ran into when installing openai gym in mac. And the solutions suggested in them was to use export commands export MACOSX_DEPLOYMENT_TARGET=10.11
export SDKROOT=/path/to/Mac10.11SDK before making the build. I tried the given suggestions and yet I am finding the same error when trying to install full openai gym. Can anyone help me in getting around this issue ?
verify if you already installed cmake, if not you can do it with:
$ brew install cmake
and later you can install atari-py:
$ pip install atari-py
Reference in oficial GitHub repo