When I am using github codespaces I can pip install -r requirements.txt perfectly fine with no errors. I decided I want to use my local machine for one project I was working on an now I am running into the error:
ERROR: Could not find a version that satisfies the requirement torch>=1.2.0 (from versions: none)
ERROR: No matching distribution found for torch>=1.2.0
Also, wget does not work on my local machine either but does work in codespaces. When I run it on my local machine this shows up instead of downloading.
Reading web response
Reading response stream... (Number of bytes read: some number that is ascending quickly)
I am using python 3.10.4.
Any help would be appreciated, thanks.
I've tried switching my Python version and manually installing from their website link but for some reason it didn't work.
Related
I am trying to run the CORnet neural network. For this, I am using Windows, and running the code via Pycharm.
Normally the package manager of Pycharm does not give me any problems but for this it tells me 'Package requirement 'torch===0.4.0+' is not found'.
I have tried installing different versions of torch using pip install.
I have also tried downloading the torch-0.4.1-cp37-cp37m-win_amd64.whl file from the pytorch website but then the error message 'torch-0.4.1-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform' pops up.
Any help is welcome!
The error i receive
I get this error trying to install mysqldb with pip. I got a response that I damaged the python files and should remove and re-install python on a different website. So I removed python via the control panel and downloaded it again. I'm not sure if it's enough or is it the right way to go but the issue still remains.
By the way, I installed python in a different folder before and then changed it manually by moving the files by dragging them, could that be the reason the files are damaged.
From the error that you receive seems that you have connection error and for that reason you cannot fetch the repository. Try to install ssl module with pip install ssl. Because if you look the first warning you can see this pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
When I deploy my developer's php code in heroku, it shows
could not find a version that satisfies the Requirement python3.5.2
How to resolve it?
Did you manually add python3.5.2 to the requirements.txt file?
This file should be generated only by the Python Package Index, e.g.
pip freeze > requirements.txt, and will list your Python dependencies, not the Python runtime version itself.
With Heroku you can specify a particular Python runtime in a text file called runtime.txt, e.g. python-3.6.4 - more information can be found in the Heroku documentation here.
Whilst you can use different runtimes, Heroku themselves only support the latest stable releases, which are (at the time of writing) 2.7.14 and 3.6.4.
Before I learned python I had a few scripts in AHK. Now that I am learning python I want to recreate those scripts in python. Doing some searches I found that people used pyhk3 for this and pyhook3 is a dependency for that as seen here on line 46. How ever I am having trouble installing them. For pyhook3, only versions 2.7 and 3.5 are available at pypi so I checked here for an unofficial version but only pyhook was listed not pyhook3. I also have a second problem. Even if I get pyhook3 for python 3.6 I am having problems installing pyhk3. After downloading it and navigating to it in comandprompt and issuing the pip command I get this output
pip install pyhk.py
Collecting pyhk.py
Could not find a version that satisfies the requirement pyhk.py (from
versions: )
No matching distribution found for pyhk.py
I checked this website this time for pyhk3 this time but found nothing.
I'm kinda at a dead end so my questions are is there anyway to get these packages to install on python 3.6 and if not is there another way to make hotkey scripts like ahk does? I need something where I type "#email" it will replace that with "example#gmail.com"
pip used to word just fine, suddenly it stopped working, no matter what I try to download I get this message:
Downloading/unpacking django-grappelli
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement django-grappelli
Cleaning up...
No distributions at all found for django-grappelli
Storing complete log in /tmp/tmpUFetT_
this happens no matter what package I try to download, and it used to work up until around 2 days ago.
my setup is: os-x running a vagrant with precise64 running virtualenv
Can you access the internet on that vagrant machine? Try pinging:
$ ping pypi.python.org
and see if you receive a response.
Restarted vagrant, I guess there was some problem with the network.