# When activating the environment won't work

**URL:** https://discourse.julialang.org/t/when-activating-the-environment-wont-work/92893
**Category:** General Usage
**Tags:** vscode, environment, project
**Created:** [January 12, 2023, 8:08pm UTC](https://discourse.julialang.org/t/when-activating-the-environment-wont-work/92893 "2023-01-12T20:08:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.julialang.org/u/Hugo)
#### Post date: [January 12, 2023, 8:08pm UTC](https://discourse.julialang.org/t/when-activating-the-environment-wont-work/92893/1 "2023-01-12T20:08:47Z")

</div>

I am working on a project using VSCode as my IDE. I created a project once, and since then I have been activating the its environment every time I work on that project. I usually have no problems with it, but today I’m having a hard time loading the packages.

I have installed all the packages in the project environment, but as I try to run the `using` command after having activated the environment, I am met with errors saying that a package is `not found in the current path`.

Given I have installed the packages in the project environment and the `Project.toml` will confirm that, why am I having to face these problems? More important, how do I fix it?

Thank you.

---

<div class="post-metadata">

### Author: ![Salmon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/salmon/32/22968_2.png) [@Salmon](https://discourse.julialang.org/u/Salmon)
#### Post date: [January 12, 2023, 8:34pm UTC](https://discourse.julialang.org/t/when-activating-the-environment-wont-work/92893/2 "2023-01-12T20:34:15Z")

</div>

Have you added or dev’d a package via specifying a path? If yes, can it be that the relative path has changed?  
If no, what happens if you use `Pkg.instantiate()`?  
If none of these help: Can you remove the conflicting package and simply add it again?

---

<div class="post-metadata">

### Author: ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.julialang.org/u/Hugo)
#### Post date: [January 12, 2023, 8:44pm UTC](https://discourse.julialang.org/t/when-activating-the-environment-wont-work/92893/3 "2023-01-12T20:44:52Z")

</div>

The only way I’ve added packages is through the command `add` in the project environment. The solution I found was to reinstall all packages. We can call it a solution, but one I’m not satisfied with. Something happened and I simply couldn’t understand what happened, but given I need to move forward with the work, I reinstalled the packages. Now, I wouldn’t be able to reproduce the problem. Oh, well…

Thanks, Salmon.
