Python Forum
My minoconda3 install is not working.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My minoconda3 install is not working.
#1
I was working on a new python program that would predict Formula_1 season winners.

I tried to open the anaconda command line from my Windows 10 apps list (I have opened it may times before with no errors) and got this output when I tried to get a list of my virtual environments:

Output:
'C:\Users\james\miniconda3\Scripts\activate.bat' is not recognized as an internal or external command, operable program or batch file. C:\Users\james>conda env list 'conda' is not recognized as an internal or external command, operable program or batch file.
There was no indication in the c prompt of what virtual environment that I was in.

I am using miniconda3 not anaconda (it saves hard drive space). I believe that the fix for anaconda also applies to miniconda3.

I tried to reinstall miniconda3 and it said during the install to choose a directory. I chose miniconda3 the original directory. It said that directory exists
and it is not empty; and I should choose another directory.

I could still choose Miniconda3, but that would blow away all of my virtual environments that I have created in the last year and a half.

I do not want that!

Is there is a way to refresh my existing miniconda3 install or to reinstall miniconda3 and save my current environments. I want to keep them.

I believe that there must be a broken link and to somehow relink it will solve the problem.

Any help appreciated. Thanks in advance.

Respectfully,

LZ
Reply
#2
You don't need to tell Windows where any Python installation is,but can if want trough Environment Variables Path.
I have a lot of environment not only Anaconda/Miniconda,but i never tell Windows about other than other that one from python.org.
G:\div_code
λ conda env list
'conda' is not recognized as an internal or external command,
operable program or batch file.
So this in not a problem i can activate base environment or directly on of my other environments.
# Activate base
G:\div_code
λ G:\miniconda3\Scripts\activate.bat base

# Now can list environment 
(base) G:\div_code
λ conda env list
# conda environments:
#
base                  *  G:\miniconda3
cc_env                   G:\miniconda3\envs\cc_env
ccee_env                 G:\miniconda3\envs\ccee_env
my1_env                  G:\miniconda3\envs\my1_env
new_env                  G:\miniconda3\envs\new_env
tom_env                  G:\miniconda3\envs\tom_env

# Switch 
(base) G:\div_code
λ activate tom_env

(tom_env) G:\div_code
 
So what i do is to have a line G:\miniconda3\Scripts\activate.bat tom_env then just paste that into command line(cmd) or cmder as i use,
then is environment ready to use.

Some more info in you latest Thread about how i make environment.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  install.bat pymem not working? ChickenNugget 1 1,823 Oct-31-2021, 02:04 PM
Last Post: snippsat
  Pip install for mysqlclient not working burvil 4 50,726 Feb-04-2021, 08:16 PM
Last Post: nilamo
  TA-Lib pip install not working Mac (Fix Found) DrinkinBeer 3 7,874 Jan-15-2021, 03:04 AM
Last Post: DrinkinBeer
  trying to locate a working grpc to install MrMajorThorburn 6 5,000 May-10-2019, 01:19 PM
Last Post: MrMajorThorburn

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020