I am getting an error when trying to install requirements.txt in a conda. The error is CondaValueError: could not parse ' ' in: requirements.txt - anaconda

Here is what I tried
conda create --name py39 --file requirements.txt
Here is the error I am getting.
CondaValueError: could not parse ' ' in: requirements.txt
Here is the requirements.txt file. for some reason I could not format it correctly here.
https://pastebin.com/RVmd26Us
I tried googling this and can't find anything. Can someone please help.
Thanks

Related

Adding a link to a requirements.txt pip file

pip install torch -f https://download.pytorch.org/whl/torch_stable.html
Hey. To fix my torch installation I have to run the above command. I was wondering if I am able to put urls in my requirements.txt?
simply putting the URL inside doesn't seem to work.
I tried the following: torch # https://download.pytorch.org/whl/torch_stable.html, but when I go to install i get
ERROR: Cannot determine archive format of C:\Users\benn\AppData\Local\Temp\pip-install-eu3abpd_\torch_ef332a557d1f4161bd846ea665b23740

ERROR: torch has an invalid wheel, .dist-info directory not found

I was going to install torch in virtual environment.
So I commanded !pip install torch, but there was an ERROR.
Collecting torch
Using cached torch-1.7.0-cp37-cp37m-win_amd64.whl(184.0 MB)
ERROR: torch ahs an invalid wheel, .dist-info directory not found
In How to fix ".dist-info directory not found" in my package? here, One answer said that deleting Appdata/Local/pip/Cache flder was working.
What should I do?
time has passed. But just in case someone happens to com on this post because of the same issue, you can try the following commands:
If you do not need a CUDA installation
pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
If you fo need a CUDA installation
pip install torch===1.7.0 torchvision===0.8.1 torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
More details about the CUDA version on the official website
I deleted the Appdata/Local/pip/Cache folder in a hurry and tried it and it was installed.
Since the deleted folder is still in the Recycle Bin, I decided there would be no problem.
I have the same problem. Try to install a previous version:
pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
I believe I somehow messed up the venv folder (I think it's about pip cache or something), so any try of pip install -r requirements.txt failed. I just deleted venv folder and recreated it with python -m venv venv
Just after that everything worked as expected and pip install -r requirements.txt installed all the packages

Unable to pip install -U sentence-transformers

I am unable to do: pip install -U sentence-transformers. I get this message on Anaconda Prompt:
ERROR: Could not find a version that satisfies the requirement torch>=1.0.1 (from sentence-transformers) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.0.1 (from sentence-transformers)
Can someone help?
I tried to Conda Install pytorch and then installed Sentence Transformer by doing these steps:
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
pip install -U sentence-transformers
This worked.
Thanks
The other answers weren't working for me even though I saw them working for others on other message boards. This did work for me though.
pip install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install -U sentence-transformers
Maybe try pip3? That might be why it says that it can't find a version.

How to install Biopython on windows7?

I am getting error:
pip install biopython
SyntaxError: invalid syntax
You are probably trying to install biopython within the Python REPL. See my screenshot below if that looks like what you are getting. Type quit() to exit the Python REPL and type pip install biopython on the commandline:
Did you go to the pip folder? On Windows, by default python and pip are not on the PATH.
Please go to the windows section of the Biopython installation tutorial.
It says you should be able to install if you run it from the pip folder.

Error: Invalid index file: Anaconda

I'm trying to install samtools with conda (Ubuntu 16.04):
conda install -c bioconda samtools
But i get this index error:
Error: Invalid index file: conda-forge/linux-64/repodata.json.bz2
Somebody knows about this? I have tried unsuccessfully to update it..

Resources