Issues with requirements in Anaconda environment? #130
-
Maybe I'm the only one who has this problem, maybe someone has a tip for me: I create an anaconda environment with Py3.6 in PyCharm (because torch needs exactly py3.6) and try to install the environments. PackagesNotFoundError: The following packages are not available from current channels:
Any idea how to install the requirements? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi! Did you install via anaconda navigator or via console? Kind Regards, |
Beta Was this translation helpful? Give feedback.
-
I am on Win11. 0.) I added C:\ProgramData\Anaconda3\Scripts to path in the system variables 1.) I started Powershell with Admin rights and updated conda with 2.) With 3.) conda activate AIRenvCONDApy36 4.) cd 'D:\LinkToPyProjects\air-2023-group24' 5A) pip install -r requirements.txt 5B) If I delete the row From 6.) With Okay, so far so fine. I get back to PyCharm, open the project, add the conda environment, check the requirements and it turns out that everything is fine except torch, which is still 1.7.1 I tried to manually install the 1.6.0 package in the Python interpreter, but it remains 1.7.1. Eventually with I only have a virtual GPU - so I took 1.6.0+cpu, hope this will be okay - ah okay, doesn't matter probably because the training will be done on colab's GPU. |
Beta Was this translation helpful? Give feedback.
I am on Win11.
0.) I added C:\ProgramData\Anaconda3\Scripts to path in the system variables
1.) I started Powershell with Admin rights and updated conda with
conda update -n base -c defaults conda
2.) With
conda create -n AIRenvCONDApy36 python=3.6
I created the environment in C:\Users\username.conda\envs\AIRenvCONDApy36
3.) conda activate AIRenvCONDApy36
4.) cd 'D:\LinkToPyProjects\air-2023-group24'
5A) pip install -r requirements.txt
returns:
ERROR: Could not find a version that satisfies the requirement torch==1.6.0 (from versions: 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2)
ERROR: No matching distribution found for torch==1.6.0
5B) If I delete the row
torch==1.6.0
…