Let's start with the basics:
As a bonus, if someone were to ELI5 the difference between conda, pip, gitbash, and powershell are
You probably know the classical cmd.exe
which opens a basic terminal where you can use different commands and call programs from. It is basically a text based way to interact with your operating system.
Powershell
is in my understanding just an extension of this (I don't use it myself) and has more capabilities of what you can do and also better scripting support.
gitbash
is an optional tool that you probably installed when you installed git
on your computer. It emulates a bash
shell that many people are used to from different operating system like ubuntu where bash
is often the default terminal and therefore makes it easier to use, as all the syntax and commands are then the same as these ppl are used.
Neither of these is in any way directly related to using python
on your computer other than being able to type python
or jupyter notebook
into these terminals to start the applications.
To the more python specific questions:
conda
is a package and virtual environment management tool. It can be used to install a variety of software and also create virtual environments to keep different set ups seperate from one another (e.g. different python versions on the same machine). But it is not limited to python. It is pre-installed when you download and install miniconda
or anaconda
which are two python distributions.
pip
is a package manager only for python packages and comes pre-installed with most python distributions.
anaconda
/miniconda
, often times confused with conda
are two python distributions, i.e. what you would consider as "I installed python on my system" that come with the conda
package manager pre-installed. miniconda
does thereby not ship any other packages while anaconda
comes with a long list of useful packages pre-installed and is therefore a popular choice when you want an easy acces into using python for your research
For more info, you can also read understanding-conda-and-pip
How can you save your system now
I basically fucked everything up
Difficult to access the current state of your system, but I would suggest you try the following steps to get to a working condition again:
- Go into Setting -> Apps and remove everything that is related to
python
or anaconda
. Make sure that everything is deleted by also searching (using windows search feature) for python
or conda
folders somewhere in C:\Users
. This should make sure that everything about your setup is purged
- Make sure that neither
python
, pip
or jupyter
commands are working anymore in your cmd
(confirming the purge)
- Download and install
miniconda
- Now Create a virtual environment and install
tf
. This is a good way to go because if you should manage to f*k up the environment, you can just delete and recreate it without much trouble:
conda create -n venv pip python=3.7 #create environment
conda activate venv #activate the environment
conda install jupyter #for jupyter notebook
pip install https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.1.0-cp37-cp37m-win_amd64.whl
- Start jupyter notebook:
jupyter notebook
. Since it only exists in this environment, same as tensorflow
, there should be no more issues to use tensorflow
normally