-
Notifications
You must be signed in to change notification settings - Fork 1.2k
VS Code does not properly activate anaconda 5.3 -> Cannot import numpy, DLL not found #3040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You aren't using the latest version of the Extension. The latest version of the extension will automatically activate the conda environment. |
@DonJayamanne I cannot reopen the issue because you closed the issue. I have verified this problem on Versions 2018.8.0, 2019.9.1, and the current insiders build 2018.10.0-alpha. Reopen the issue and test it yourself. People are slow to update to Anaconda 5.3, so you guys have a little time to fix this before it becomes a big headache. Although updating my VS code did make the console log much smaller:
|
I don't think that's the case. You should regularly issue |
Please could you upload screenshots of the errors and other logs. |
@joseortiz3 Please try this again with the latest version and provide screen shots and the necessary logs. |
@DonJayamanne Hmm, that's weird. I don't see it anymore. Still happens with Visual Studio 2017 however. Code seems to be working now.. |
Considering this a duplicate of #3330 now. |
Environment data
Actual behavior
in Anaconda 5.3.0, Python 3.7, VS Code, leads to:
But inside an
Anaconda Prompt
, importing works.Expected behavior
Should be able to import numpy. This is the first Anaconda release where you have to explicitly activate the anaconda environment to import numpy. According to @mingwandroid in ContinuumIO/anaconda-issues#10257 (comment) this is the new normal. This is also an issue in VS 2017's PTVS: microsoft/PTVS#4820
I also tried the latest
ms-python-insiders.vsix
, and it also has this problem.Steps to reproduce:
import numpy
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: