Fix No such file or directory on conda activate
See original GitHub issueEnvironment data
- VS Code version: 1.54.3
- Extension version (available under the Extensions sidebar): v2021.3.680753044
- OS and version: linux x64 5.9.16-1
- Python version (& distribution if applicable, e.g. Anaconda): 3.9.2 conda 4.9.2
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Relevant/affected Python-related VS Code extensions and their versions: Jupyter v2021.3.684299474
- Value of the
python.languageServer
setting: Jedi
Expected behaviour
for the command ‘. activate’ to work in integrated terminal. (but the source command DOES work!- i.e source activate & conda activate)
Actual behaviour
. activate returns an error: No such file or directory, but weirdly enough - the command will work after deactivating the environment:
Steps to reproduce:
- . activate conda_env_name
Consequence
This is actually affecting a error when using the jupyter extension: whenever I need to activate a virtual environment other than base in a notebook, the following command is used:
. activate mech && echo etc.
returning a command failed message saying: activate: No such file or directory.
I’ve had this problem in the past, and it disappeared for a while, but now it’s back. Also, a weird observation: if code is called from terminal, this issue does not happen.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:13
Top Results From Across the Web
Why is Anaconda source activate non-existent? - Stack Overflow
When trying to activate an environment, the console output is -bash: activate: No such file or directory . The output of which conda...
Read more >When using conda, "source activate [env_name]" doesn't work ...
To fix this problem, you can simply enter the following command in the terminal where user is your username. export PATH="/home/user/anaconda3/ ...
Read more >Failed to activate conda environment! - Mapping step
Hi everyone, I am new to Galaxy and I am facing a conda environment ... Failed to activate conda environment! ... No such...
Read more >Managing environments - Conda
Locate the directory for the conda environment in your Anaconda Prompt by running in the command shell %CONDA_PREFIX% . Enter that directory and...
Read more >'activate' is not a conda command. Keeps popping up. What ...
source activate rsudp (or conda activate rsudp if you installed it ... bash: Miniconda-latest-Linux-armv71.sh: No such file or directory
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed with https://github.com/microsoft/vscode-python/pull/18989.
Hello, I have fixed this issue in PR https://github.com/microsoft/vscode-python/pull/18989