Comments (5)
Hello,
I faced the same problem which seems to be due to the shell activation of conda which is supposed to set some variables. On my side, I replaced conda--get-path-prefix
with the following implementation:
(defun conda--get-path-prefix (env-dir)
"Get a platform-specific path string to utilize the conda env in ENV-DIR.
It's platform specific in that it uses the platform's native path separator."
(s-trim
(with-output-to-string
(with-current-buffer standard-output
(process-file shell-file-name nil '(t nil) nil shell-command-switch
(format "%s/bin/conda ..activate \"%s\" %s"
conda-anaconda-home
(if (eq system-type 'windows-nt)
"cmd.exe"
"bash")
env-dir))))))
so it go take the full path of conda based on conda-aconaconda-home
from conda.el.
@orausch can you tell me a bit more about your system? OS, Emacs version, etc?
from conda.el.
Sure; my OS is debian testing, my emacs version is 26.1. Conda is installed in a non-standard location: ~/.local/opt/miniconda3
, and my conda version is 4.8.2
from conda.el.
from conda.el.
@seblemaguer Yes, that seems like a reasonable solution IMO.
from conda.el.
Related Issues (20)
- Error auto activating base env with custom conda home HOT 4
- conda-env-activate doesn't work but conda-env-list does HOT 6
- conda-env-name-to-dir errors HOT 3
- Error activating env HOT 16
- `conda-env-subdirectory` variable
- Add conda-config (similar to elpy-config) command to re-evaluate cached values HOT 2
- When python-shell-interpreter is set to "jupyter", conda is unable to change the environment of the interpreter. HOT 4
- Prefix is not added in shell prompt in Emacs 29.0.60 HOT 3
- Is there a reason not to get the user's config by default if it exists? HOT 4
- Activating environment when using 'emacs file.py'
- conda-env-activate-for-buffer sets PATH to "", causing "ls" "git" "bash" to fail HOT 9
- Error: `(void-function working-dir)` HOT 2
- Error when running the suggested config
- Eshell Python does not track environment HOT 2
- once conda-env-autoactivate-mode is called for one buffer, it activates for everyfile
- Auto Activate only for Python-mode
- Invalid version syntax HOT 5
- Add support for direct python invocation in the current environment
- Only .yml extension is recognised for activating environment
- conda.el, elpy, and python-mode conflicts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda.el.