Answer the question
In order to leave comments, you need to log in
Unable to install Anaconda in Virtual Environment, how to approach?
I'm trying to install materials for the next course:
https://github.com/Dataweekends/zero_to_deep_learn...
I'm doing the following steps:
1. git clone https://github.com/Dataweekends/zero_to_deep_learn...
Download and Install Anaconda Python 3.6
https://www.anaconda.com/download/
2. Change to course folder
cd zero_to_deep_learning_video
Create the course environment
3. conda env create
wait for the environment to create.
4. Activate the environment (Mac/Linux)
conda activate ztdl
5. conda activate ztdl
Check that your prompt changed to
(ztdl) $
6. Launch Jupyter Notebook
jupyter notebook
Open your browser to
localhost:8888
7. Run the Check environment Notebook
Go to the course folder, open the notebook 0_Check_Environment.ipynb and run it. If you see the message:
Houston we are going!
but the last check fails and I get:
'/anaconda3/bin/python'
instead of:
//anaconda/envs/ztdl/bin/python
and:
'/anaconda3/lib/python3.6/site-packages/jupyter.py'
instead :
//anaconda/envs/ztdl/lib/python3.6/site-packages/jupyter.py'
plus:
no module name tensorflow, although when I look at the contents via pip (pip list) everything is included in the list of installed files.
i.e., as I understand it, PATH Anaconda is not installed somewhere on / through the virtual machine.
________________________________________________________________________________________
Here, by the way, I want to note that every time I start the terminal, I immediately get 3 messages:
-bash: conda
:
command
not
found
:$PATH" to my .bachrc
(open by typing vim ~/.bashrc)
Add this to your .zshrc:
export PATH="/home/username/anaconda3/bin:$PATH"
(open by typing vim ~/.zshrc )
Make sure to replace /home/username/anaconda3 with your actual path.
____________________________________________________________________________
I open .bashrc in which I see
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
added below:
export PATH="/home/IvanIvanov1/anaconda3/bin:$PATH"
__________________________________________________________________
next: I open /.zshrc and paste:
export PATH="/home/IvanIvanov1/anaconda3/bin:$PATH"
(except for this entry, there is nothing else in the file)
Esc
:x Enter
_________________________________________________________________________________________________
Found another answer to stack overflow:
https:/ /stackoverflow.com/questions/46969296/anaco...
open .profile:
in cat. I have right now:
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
&& source "$HOME/.rvm/scripts/ rvm" # Load RVM into a shell session *as a function*
and .bash-profile:
PATH="$PATH:~/bin"
&& source " $HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# added by Anaconda3 5.1.0 installer
# export PATH="/anaconda3/bin:$PATH" # commented out by conda initialize
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
conda activate
conda activate
# . /anaconda3/etc/profile.d/conda.sh # commented out by conda initialize
# conda activate # commented out by conda initialize
# . /anaconda3/etc/profile.d/conda.sh # commented out by conda initialize
# conda activate # commented out by conda initialize
conda activate
# . /anaconda3/etc/profile.d/conda.sh # commented out by conda initialize
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then
. "/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
# Setting PATH for Python 3.
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
# added by Anaconda3 2019.03 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/IvanIvanov1/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/Users/IvanIvanov1/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/IvanvIvanov1/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="
unset __conda_setup
# <<< conda init <<<
____________________________________________________________________________________________
Please tell me where to write what and if I'm in the right direction at all
Answer the question
In order to leave comments, you need to log in
I managed to solve the problem by installing another kernel
for Jupyter Notebook by a fellow programmer from here:
https://ipython.readthedocs.io/en/stable/install/k...
Kernels
for different environments
check of the file passes and tensorflow is found, but nevertheless, the problem most likely remains in .bash files, because. those do not address the correct PATHs, but for now it will work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question