Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
203 views
in Technique[技术] by (71.8m points)

Gramex does not run after installing via conda

The Gramex installation instructions says:

conda create -y --name gramex python=3.7            # Create a new environment
conda activate gramex                               # Activate it
conda install -y -c conda-forge -c gramener gramex  # Install Gramex

But Step 2 (conda activate gramex) doesn't work on Linux / Cygwin because of the following error:

your shell has not been properly configured

question from:https://stackoverflow.com/questions/65879294/gramex-does-not-run-after-installing-via-conda

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This happens, because your shell (I suspect bash) is not initialized for conda. This happens in case you did select NO during the installation, when it asked

Do you wish the installer to initialize Anaconda3 by running conda init?

A temporary solution from the anaconda FAQ (section "Should I add Anaconda to the macOS or Linux PATH?") is to run:

source <path to conda>/bin/activate

if you want a permanent solution, simply do

source <path to conda>/bin/activate
conda init bash

which will modify your ~/.bashrc to include the shell initialization


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...