This question already has answers here:
What are the valid values for --platform, --abi, and --implementation for pip download?
(3 answers)
Closed 3 years ago.
In the help for pip -install I noticed the install option --platform -> "Only use wheels compatible with platform. Defaults to the platform of the running system."
I was thinking I could use this option to get the Linux binaries on my windows machine however I cannot seem to get it to work as expected.
What is the proper syntax for this option, and what exactly is a "Wheel"?
pip install --platform ubuntu --only-binary=:all: cryptography
Returns Errors:
ERROR: Could not find a version that satisfies the requirement cryptography (from versions: none)
ERROR: No matching distribution found for cryptography
Edit:
Thanks for the initial responses. When trying to install the linux .so files on a windows machine I am getting the same errors when using various versions of the command
pip install --platform linux_x86_64 --only-binary=:all: cryptography
In the cryptography document it identifies various linux supported distributions. https://cryptography.io/en/latest/installation/
Does anyone know how to get cryptography .so files using a windows machine?
A Wheel is a pre-built distribution format that provides faster installation compared to Source Distributions (sdist), especially when a project contains compiled extensions[2].
I don't think ubuntu is a possible value for the --platform option. Try with something like linux_x86_64 or linux_i386
Related
I am trying to install opencv nonfree on windows version to run the sift.
PS F:\DKE\CV\cvfinal> pip install opencv-contrib-python-nonfree
> ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-nonfree (from versions: none)
> ERROR: No matching distribution found for opencv-contrib-python-nonfree`
can someone help me to install this .i don't want to use cmake to created the package because its giving me some other errors.I am using the python 3.8.2 64 bit version ith pip
pip 20.0.2 from C:\Users\DELL\Anaconda3\lib\site-packages\pip (python 3.6)
can some please help me
I was not able to use PYTHON on my computer but you can see the video.
C++: I have solved it by installing Cmake, and later using opencv_master and opencv_contrib_master. You have to install Cmake and add it to the Path directories on windows. Later you will have to add opencv_master to Cmake an configure it, check none error is matched, later you have to add opencv_contrib_master/include to EXTRA_MODULES, you have to choice NONFREE and WORLD option, configure and generate. Thats the most important, you can use the next video. It work for me, just remember to use the instrucctions above.
https://www.youtube.com/watch?v=_fqpYLM6SCw&t=312s
Tried running pip3 install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html first, taken from PyTorch website
which resulted in
No matching distribution found for torch===1.4.0
and Could not find a version that satisfies the requirement torch===1.4.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
Finally downloaded the .whl file from downloads page and tried installing locally like so 'C:\Users\Raf\AppData\Local\Programs\Python\Python38\Scripts\pip.exe' install torch-1.4.0+cpu-cp37-cp37m-win_amd64.whl
after which I get torch-1.4.0+cpu-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
using 64 Python 3.8, on 64 bit Windows
using 64 Python 3.8
but you downloaded the cp37 whl which is for python 3.7. There is currently no whl file available for python 3.8. So either install from source (probably not recommended), install a different python version or create a virtual environment with python 3.7
Update
There is now: https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp38-cp38-win_amd64.whl
I faced the similar issue, even if your python version is correct you can still face this problem if you had install 32x instead of 64x
If it is 32-bit you will face the same problem.
To check the bit version of python on your system run this
python -c "import struct;print( 8 * struct.calcsize('P'))"
This will return 32 or 64
If it returns 32 change it to 64 and reinstall the PyTorch
https://www.python.org/downloads/windows/
I go to the PyTorch website and select the following options
PyTorch Build: Stable (1.2)
Your OS: Windows
Package: pip
Language: Python 3.7
CUDA: None
(All of these are correct)
Than it displays a command to run
pip3 install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
I have already tried to mix around the the different options but none of them has worked.
ERROR: ERROR: Could not find a version that satisfies the requirement torch==1.2.0+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.2.0+cpu
I tried to do pip install pytorch but pytorch doesn't support pypi
I've been in same situation.
My prob was, the python version... I mean, in the 'bit' way.
It was 32 bit that the python I'd installed.
You should check which bit of python you installed.
you can check in the app in setting, search python, then you will see the which bit you've installed.
After I installed the 64 bit of Python, it solved.
I hope you figure it out!
environment : win 10
It looks like it can't find a version called "1.2.0+cpu" from it's list of versions that it can find (0.1.2, 0.1.2.post1, 0.1.2.post2). Try looking for one of those versions on the PyTorch website.
So it looks like I cant install PyTorch because I am running python 32-bit. This may or may not be the problem but this is the only possible error that I could see this being the cause.
My tensorflow 2.0.0beta1 runs normally, but I cannot install tensorflow-text using the command pip install tensorflow-text (as described on the tensorflow page). I can find it using pip search tensorflow-text but I am getting an error
ERROR: Could not find a version that satisfies the requirement tensorflow-text (from versions: none)
There are no requirements for this package (i.e. a specific python version).
I am running on windows, using conda, python 3.6.9
Update
The first release candidate of 2.4.0 was published today which features windows wheels for the first time. 2.4.0rc0 on PyPI. Note that only wheels for Python 3.6 and 3.7 are working properly at the moment. Install via e.g.
> py -3.7 -m pip install tensorflow-text==2.4.0rc0
Original answer
At the time of writing this, tensorflow-text is not available for Windows yet.
Windows is something we do wish to add. We've had some difficulties getting a working package though, which is why it is not available yet. The difference between this library and tensorflow-probability is we make use of custom ops written in c++, and building those shared libraries to work well with Tensorflow inside Windows has had issues; plus, the lengthy build times on Windows has made iterating on these issues slow. While the next beta release (this week) will not include Windows, we would like for the next release to include it.
Source.
This question already has answers here:
gem install libv8 --version '3.11.8.17' on ruby (windows)
(8 answers)
Closed 8 years ago.
So this is how I try to install libv8 on my Windows:
D:\projects\perfstats>gem install libv8
Fetching: libv8-3.16.14.1.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing libv8:
ERROR: Failed to build gem native extension.
D:/Ruby193/bin/ruby.exe extconf.rb
creating Makefile
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/builder.rb:49:in `setup_python!': libv8 requires python 2 to be installed in order to build, but it is currently not available (RuntimeError)
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/builder.rb:35:in `block in build_libv8!'
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/builder.rb:34:in `chdir'
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/builder.rb:34:in `build_libv8!'
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/location.rb:24:in `install!'
from extconf.rb:7:in `<main>'
I installed python 2.7 and added it to the path:
D:\projects\perfstats>python -V
Python 2.7.3
Any ideas what could be the solution in this case?
There are some work-around to fix the problem
Try to run this: gem install libv8 -v '3.16.14.1' -- --with-system-v8
Or we separate them in the Gemfile like this
group :production do
gem 'libv8', '~> 3.11.8.3'
gem 'therubyracer', :platform => :ruby
end
And then run the bundle command:
bundle install development or
bundle install --without production
I had the same problem trying to install the therubyracer gem on Windows.
Try installing the GitHub package therubyracer_for_windows and copy the v8.dll & v8preparser.dll into your ruby\bin folder.
This will also install the libv8 gem and should solve your issue.