# Anaconda interfering with vscode

**URL:** <https://discourse.julialang.org/t/anaconda-interfering-with-vscode/108764>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 13, 2024, 9:12am UTC](https://discourse.julialang.org/t/anaconda-interfering-with-vscode/108764 "2024-01-13T09:12:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiang\_ming\_zhang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jiang_ming_zhang/32/204063_2.png) [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Post date:** [January 13, 2024, 9:12am UTC](https://discourse.julialang.org/t/anaconda-interfering-with-vscode/108764/1 "2024-01-13T09:12:42Z")

</div>

I have both vscode and anaconda on my windows desktop. Both can be used to run julia and python.

Each time I start vscode and try to run a julia script, I get the error:

```julia
[Info: Precompiling VSCodeServer [9f5989ce-84fe-42d4-91ec-6a7a8d53ed0f]
julia> D:/Anaconda/Scripts/activate
ERROR: syntax: "/" is not a unary operator
Stacktrace:
 [1] top-level scope
   @ none:1

julia> conda activate base
ERROR: syntax: extra token "activate" after end of expression
Stacktrace:
 [1] top-level scope
   @ none:1

```

I got the error message for the first run, but if I ran the script again, it went through.

It seems that anaconda is interfering with my vscode. How can I clean up my settings?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 13, 2024, 9:48am UTC](https://discourse.julialang.org/t/anaconda-interfering-with-vscode/108764/2 "2024-01-13T09:48:46Z")

</div>

Not sure I understand - are you saying VSCode automatically sends `D:/Anaconda/Scripts/activate` to your Julia REPL or is this something you input?

---

<div class="post-metadata">

**Author:** ![jiang\_ming\_zhang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jiang_ming_zhang/32/204063_2.png) [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Post date:** [January 13, 2024, 12:06pm UTC](https://discourse.julialang.org/t/anaconda-interfering-with-vscode/108764/3 "2024-01-13T12:06:52Z")

</div>

not my input.

I did not do anything. As a newbie, I simply click the triangle button on the upper right corner to run the script.

---

<div class="post-metadata">

**Author:** ![Zentrik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zentrik/32/35409_2.png) [@Zentrik](https://discourse.julialang.org/u/Zentrik)\
**Post date:** [January 13, 2024, 1:55pm UTC](https://discourse.julialang.org/t/anaconda-interfering-with-vscode/108764/4 "2024-01-13T13:55:59Z")

</div>

> **Tip** : To prevent automatic activation of a selected environment, add `"python.terminal.activateEnvironment": false` to your `settings.json` file (it can be placed anywhere as a sibling to the existing settings).

According to [Using Python Environments in Visual Studio Code](https://code.visualstudio.com/docs/python/environments).
