Open qinchunfan opened 4 years ago
Same here. I'm using Miniconda3 installed via https://Scoop.sh.
Powershell console 1 (as Administrator):
scoop install miniconda3
conda install -n root -c pscondaenvs pscondaenvs
Start powershell console 2:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "site-packages\conda\cli\main.py", line 143, in main
File "site-packages\conda\activate.py", line 1210, in main
File "site-packages\conda\activate.py", line 178, in execute
File "site-packages\conda\activate.py", line 166, in hook
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\matt\\AppData\\Local\\Temp\\_MEI279242\\conda\\shell\\condabin\\conda-hook.ps1'
...snip...
Suspicious that's it's looking for a file in env:$TEMP
. The only conda-hook.ps1 files I see on my system are:
C:\Users\matt\scoop\apps\miniconda3\4.10.3\pkgs\conda-4.10.3-py39haa95532_0\shell\condabin\conda-hook.ps1
C:\Users\matt\scoop\apps\miniconda3\4.10.3\pkgs\conda-4.10.3-py39haa95532_0\Lib\site-packages\conda\shell\condabin\conda-hook.ps1
Resolved for my machine. Turns out I have two conda installs on my machine. The second comes with ArcGIS Pro and that was being used even though it wasn't in PATH. To fix I located all insances of Profile.ps1
and Microsoft.Powershell_profile.ps1
and commented out the section adding ArcGIS Pro's conda. Now powershell prompts open without error, and only Miniconda3's conda is used.
Reference: https://devblogs.microsoft.com/scripting/understanding-the-six-powershell-profiles/
@maphew Hello, my problem is the same as what you described. I installed arcgis pro, cloned a python 3.7.10, and VScode used the cloned python 3.7.10 path. The same error was reported. How did you solve it? Can you write down your specific solutions?
When I try to start Anaconda Powershell Prompt it happend with an error
Actual Behavior
so how to deal this issue? conda version:4.8.2
Operating System: win10
conda info