VS Code importing the multiarray numpy extension module failedWhy does the 'tensorflow' module import fail in Spyder and not in Jupyter Notebook and not in Python prompt?Importing the multiarray numpy extension module failed (Just with Anaconda)How to run Spyder with Python 3.7 with AnacondaSpyder environment and Anaconda prompt point to different interpretersAnaconda Prompt finds libraries, cmd -> Python doesn't. Python was only installed with Anaconda package, nothing elseHow to get Anaconda3 packages to work with PhCharm CommunityPyCharm using Anaconda python.exe with Modules fails - ModuleNotFoundError: No module named 'PySide'Numpy fails to load in Windows command window. Python version 3.7.1how to fix numpy module not found and installing tensorflowImporting the multiarray Numpy extension module failed Visual Studio 2019 Anaconda 1.9.6 Python 3.7.1
Why do (or did, until very recently) aircraft transponders wait to be interrogated before broadcasting beacon signals?
C++ logging library
Grandpa has another non math question
What does the homotopy coherent nerve do to spaces of enriched functors?
What plausible reason could I give for my FTL drive only working in space
What is the logic behind charging tax _in the form of money_ for owning property when the property does not produce money?
What's the difference between DHCP and NAT? Are they mutually exclusive?
Does it make sense to use a wavelet that is equal to a sine of one period?
What is the interaction between Muraganda Petroglyphs and Humility?
one-hot-encoding categorical data gives error
What's the best way to quit a job mostly because of money?
Open Drain pin not going to GND
How many sets of dice do I need for D&D?
Is it advisable to add a location heads-up when a scene changes in a novel?
How to avoid typing 'git' at the begining of every Git command
Why is my power MOSFET heating up when on?
How can you estimate a spike story?
Is Jesus the last Prophet?
Does a single fopen introduce TOCTOU vulnerability?
Run script with arguments as user
Are regulatory compliance checks performed within the EU bloc?
Noblesse oblige loanword in German
Why is long-term living in Almost-Earth causing severe health problems?
ASCII Meme Arrow Generator
VS Code importing the multiarray numpy extension module failed
Why does the 'tensorflow' module import fail in Spyder and not in Jupyter Notebook and not in Python prompt?Importing the multiarray numpy extension module failed (Just with Anaconda)How to run Spyder with Python 3.7 with AnacondaSpyder environment and Anaconda prompt point to different interpretersAnaconda Prompt finds libraries, cmd -> Python doesn't. Python was only installed with Anaconda package, nothing elseHow to get Anaconda3 packages to work with PhCharm CommunityPyCharm using Anaconda python.exe with Modules fails - ModuleNotFoundError: No module named 'PySide'Numpy fails to load in Windows command window. Python version 3.7.1how to fix numpy module not found and installing tensorflowImporting the multiarray Numpy extension module failed Visual Studio 2019 Anaconda 1.9.6 Python 3.7.1
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
import numpy
is not working. This started because I couldn't get PyQt5 to work on my home computer. In the Spyder IDE, I can import modules and get everything working fine, but in VS Code, I can't import basic modules. I'm on Windows 10 with Python 3.7. I've Googled a lot and have tried these:
- Uninstall Anaconda and VS Code, and reinstall both
- In VS Code, press Ctrl+Shift+P, Select Interpreter, and select Python 3.7.1 64-bit ('base':conda), ~Anaconda3python.exe
- I saw on another similar question that python3.dll may be missing from one of my Anaconda directories, but it is indeed there.
- Add environment variable to PATH by going to System Properties > Advanced tab > Environment Variables... > under System Path, Edit, New > C:UsersmynameAnaconda3Scripts
Once I did #4 above, the new error message in VS Code when importing numpy is DLL load failed: The specified module could not be found. And in the terminal, I see: The term 'conda' is not recognized as the name of the cmdlet, ...
One thing I notice is in a Python prompt (not Anaconda) I type:
import sys
print(sys.version)
The output is 3.7.2, while in VS Code, the Select Interpreter (see above #2) says Python 3.7.1. Not sure if this is important.
Any help? Everything works on my work computer fine, but it's just my home computer that is being difficult.
visual-studio-code anaconda
add a comment |
import numpy
is not working. This started because I couldn't get PyQt5 to work on my home computer. In the Spyder IDE, I can import modules and get everything working fine, but in VS Code, I can't import basic modules. I'm on Windows 10 with Python 3.7. I've Googled a lot and have tried these:
- Uninstall Anaconda and VS Code, and reinstall both
- In VS Code, press Ctrl+Shift+P, Select Interpreter, and select Python 3.7.1 64-bit ('base':conda), ~Anaconda3python.exe
- I saw on another similar question that python3.dll may be missing from one of my Anaconda directories, but it is indeed there.
- Add environment variable to PATH by going to System Properties > Advanced tab > Environment Variables... > under System Path, Edit, New > C:UsersmynameAnaconda3Scripts
Once I did #4 above, the new error message in VS Code when importing numpy is DLL load failed: The specified module could not be found. And in the terminal, I see: The term 'conda' is not recognized as the name of the cmdlet, ...
One thing I notice is in a Python prompt (not Anaconda) I type:
import sys
print(sys.version)
The output is 3.7.2, while in VS Code, the Select Interpreter (see above #2) says Python 3.7.1. Not sure if this is important.
Any help? Everything works on my work computer fine, but it's just my home computer that is being difficult.
visual-studio-code anaconda
Can you try help("modules") in both a shell and in a script within vs code and compare the list. It seems like you are using two different python installations. Do you have Python installed outside of Anaconda?
– AlexNe
Mar 24 at 23:28
I do have Python installed outside of Anaconda. Is there a good reason to delete that version? I have the same dual installation setup at work where everything works fine.
– maxutil
Mar 24 at 23:59
It should be fine, but my guess is that's why the versions are different. I guess you could install numpy via anaconda if it is not already and try again. And please check your modules with help("modules")...and oh. Having used both Anaconda and VSC imo Anaconda doesnt bring much functionality that is worth the hassle.
– AlexNe
Mar 25 at 6:38
add a comment |
import numpy
is not working. This started because I couldn't get PyQt5 to work on my home computer. In the Spyder IDE, I can import modules and get everything working fine, but in VS Code, I can't import basic modules. I'm on Windows 10 with Python 3.7. I've Googled a lot and have tried these:
- Uninstall Anaconda and VS Code, and reinstall both
- In VS Code, press Ctrl+Shift+P, Select Interpreter, and select Python 3.7.1 64-bit ('base':conda), ~Anaconda3python.exe
- I saw on another similar question that python3.dll may be missing from one of my Anaconda directories, but it is indeed there.
- Add environment variable to PATH by going to System Properties > Advanced tab > Environment Variables... > under System Path, Edit, New > C:UsersmynameAnaconda3Scripts
Once I did #4 above, the new error message in VS Code when importing numpy is DLL load failed: The specified module could not be found. And in the terminal, I see: The term 'conda' is not recognized as the name of the cmdlet, ...
One thing I notice is in a Python prompt (not Anaconda) I type:
import sys
print(sys.version)
The output is 3.7.2, while in VS Code, the Select Interpreter (see above #2) says Python 3.7.1. Not sure if this is important.
Any help? Everything works on my work computer fine, but it's just my home computer that is being difficult.
visual-studio-code anaconda
import numpy
is not working. This started because I couldn't get PyQt5 to work on my home computer. In the Spyder IDE, I can import modules and get everything working fine, but in VS Code, I can't import basic modules. I'm on Windows 10 with Python 3.7. I've Googled a lot and have tried these:
- Uninstall Anaconda and VS Code, and reinstall both
- In VS Code, press Ctrl+Shift+P, Select Interpreter, and select Python 3.7.1 64-bit ('base':conda), ~Anaconda3python.exe
- I saw on another similar question that python3.dll may be missing from one of my Anaconda directories, but it is indeed there.
- Add environment variable to PATH by going to System Properties > Advanced tab > Environment Variables... > under System Path, Edit, New > C:UsersmynameAnaconda3Scripts
Once I did #4 above, the new error message in VS Code when importing numpy is DLL load failed: The specified module could not be found. And in the terminal, I see: The term 'conda' is not recognized as the name of the cmdlet, ...
One thing I notice is in a Python prompt (not Anaconda) I type:
import sys
print(sys.version)
The output is 3.7.2, while in VS Code, the Select Interpreter (see above #2) says Python 3.7.1. Not sure if this is important.
Any help? Everything works on my work computer fine, but it's just my home computer that is being difficult.
visual-studio-code anaconda
visual-studio-code anaconda
asked Mar 24 at 23:02
maxutilmaxutil
486
486
Can you try help("modules") in both a shell and in a script within vs code and compare the list. It seems like you are using two different python installations. Do you have Python installed outside of Anaconda?
– AlexNe
Mar 24 at 23:28
I do have Python installed outside of Anaconda. Is there a good reason to delete that version? I have the same dual installation setup at work where everything works fine.
– maxutil
Mar 24 at 23:59
It should be fine, but my guess is that's why the versions are different. I guess you could install numpy via anaconda if it is not already and try again. And please check your modules with help("modules")...and oh. Having used both Anaconda and VSC imo Anaconda doesnt bring much functionality that is worth the hassle.
– AlexNe
Mar 25 at 6:38
add a comment |
Can you try help("modules") in both a shell and in a script within vs code and compare the list. It seems like you are using two different python installations. Do you have Python installed outside of Anaconda?
– AlexNe
Mar 24 at 23:28
I do have Python installed outside of Anaconda. Is there a good reason to delete that version? I have the same dual installation setup at work where everything works fine.
– maxutil
Mar 24 at 23:59
It should be fine, but my guess is that's why the versions are different. I guess you could install numpy via anaconda if it is not already and try again. And please check your modules with help("modules")...and oh. Having used both Anaconda and VSC imo Anaconda doesnt bring much functionality that is worth the hassle.
– AlexNe
Mar 25 at 6:38
Can you try help("modules") in both a shell and in a script within vs code and compare the list. It seems like you are using two different python installations. Do you have Python installed outside of Anaconda?
– AlexNe
Mar 24 at 23:28
Can you try help("modules") in both a shell and in a script within vs code and compare the list. It seems like you are using two different python installations. Do you have Python installed outside of Anaconda?
– AlexNe
Mar 24 at 23:28
I do have Python installed outside of Anaconda. Is there a good reason to delete that version? I have the same dual installation setup at work where everything works fine.
– maxutil
Mar 24 at 23:59
I do have Python installed outside of Anaconda. Is there a good reason to delete that version? I have the same dual installation setup at work where everything works fine.
– maxutil
Mar 24 at 23:59
It should be fine, but my guess is that's why the versions are different. I guess you could install numpy via anaconda if it is not already and try again. And please check your modules with help("modules")...and oh. Having used both Anaconda and VSC imo Anaconda doesnt bring much functionality that is worth the hassle.
– AlexNe
Mar 25 at 6:38
It should be fine, but my guess is that's why the versions are different. I guess you could install numpy via anaconda if it is not already and try again. And please check your modules with help("modules")...and oh. Having used both Anaconda and VSC imo Anaconda doesnt bring much functionality that is worth the hassle.
– AlexNe
Mar 25 at 6:38
add a comment |
1 Answer
1
active
oldest
votes
What ended up working for me is downgrading my Python installation from 3.7.1 to 3.6.4 with:
conda install python=3.6.4
Hope this helps someone out there.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55329420%2fvs-code-importing-the-multiarray-numpy-extension-module-failed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
What ended up working for me is downgrading my Python installation from 3.7.1 to 3.6.4 with:
conda install python=3.6.4
Hope this helps someone out there.
add a comment |
What ended up working for me is downgrading my Python installation from 3.7.1 to 3.6.4 with:
conda install python=3.6.4
Hope this helps someone out there.
add a comment |
What ended up working for me is downgrading my Python installation from 3.7.1 to 3.6.4 with:
conda install python=3.6.4
Hope this helps someone out there.
What ended up working for me is downgrading my Python installation from 3.7.1 to 3.6.4 with:
conda install python=3.6.4
Hope this helps someone out there.
answered Mar 26 at 13:40
maxutilmaxutil
486
486
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55329420%2fvs-code-importing-the-multiarray-numpy-extension-module-failed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you try help("modules") in both a shell and in a script within vs code and compare the list. It seems like you are using two different python installations. Do you have Python installed outside of Anaconda?
– AlexNe
Mar 24 at 23:28
I do have Python installed outside of Anaconda. Is there a good reason to delete that version? I have the same dual installation setup at work where everything works fine.
– maxutil
Mar 24 at 23:59
It should be fine, but my guess is that's why the versions are different. I guess you could install numpy via anaconda if it is not already and try again. And please check your modules with help("modules")...and oh. Having used both Anaconda and VSC imo Anaconda doesnt bring much functionality that is worth the hassle.
– AlexNe
Mar 25 at 6:38