Issue installing a site package on Python 3.6.1
I installed python on my desktop recently, selecting Python 3.6.1 using the WinPython-64bit-3.6.1.0Qt5 distribution. The installation happened smoothly. I then wanted to install a package called OpenPNM. I went to the console command prompt and did "pip install openpnm" which worked after a few attempts. The attempts had to be made as there were some permissions settings on my drive which had to be removed.
When I go into ..WinPython-64bit-3.6.1.0Qt5python-3.6.1.amd64Libsite-packages I do see the openpnm folder with everything in there. It seems like the installation worked correctly. However, when I try to import the package using import OpenPNM, it gives me an error. The error is as below:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'OpenPNM'
Can someone suggest what I'm doing wrong?
installation python
add a comment |
I installed python on my desktop recently, selecting Python 3.6.1 using the WinPython-64bit-3.6.1.0Qt5 distribution. The installation happened smoothly. I then wanted to install a package called OpenPNM. I went to the console command prompt and did "pip install openpnm" which worked after a few attempts. The attempts had to be made as there were some permissions settings on my drive which had to be removed.
When I go into ..WinPython-64bit-3.6.1.0Qt5python-3.6.1.amd64Libsite-packages I do see the openpnm folder with everything in there. It seems like the installation worked correctly. However, when I try to import the package using import OpenPNM, it gives me an error. The error is as below:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'OpenPNM'
Can someone suggest what I'm doing wrong?
installation python
From the command line, what are the results ofwhere python
? Also, is the name of the script you are trying to runopenpnm.py
or something similar?
– Anaksunaman
Jan 5 at 6:30
Do you have 2 versions of Python installed on your device?
– Infected Drake
Jan 5 at 13:27
@Anaksunaman where python gives the following output: INFO: could not find files for the given pattern(s)
– Rupak
Jan 7 at 0:25
I am trying to install a package called openpnm; not calling a script.
– Rupak
Jan 7 at 0:25
@InfectedDrake Not that i know of. How can i check?
– Rupak
Jan 7 at 0:26
add a comment |
I installed python on my desktop recently, selecting Python 3.6.1 using the WinPython-64bit-3.6.1.0Qt5 distribution. The installation happened smoothly. I then wanted to install a package called OpenPNM. I went to the console command prompt and did "pip install openpnm" which worked after a few attempts. The attempts had to be made as there were some permissions settings on my drive which had to be removed.
When I go into ..WinPython-64bit-3.6.1.0Qt5python-3.6.1.amd64Libsite-packages I do see the openpnm folder with everything in there. It seems like the installation worked correctly. However, when I try to import the package using import OpenPNM, it gives me an error. The error is as below:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'OpenPNM'
Can someone suggest what I'm doing wrong?
installation python
I installed python on my desktop recently, selecting Python 3.6.1 using the WinPython-64bit-3.6.1.0Qt5 distribution. The installation happened smoothly. I then wanted to install a package called OpenPNM. I went to the console command prompt and did "pip install openpnm" which worked after a few attempts. The attempts had to be made as there were some permissions settings on my drive which had to be removed.
When I go into ..WinPython-64bit-3.6.1.0Qt5python-3.6.1.amd64Libsite-packages I do see the openpnm folder with everything in there. It seems like the installation worked correctly. However, when I try to import the package using import OpenPNM, it gives me an error. The error is as below:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'OpenPNM'
Can someone suggest what I'm doing wrong?
installation python
installation python
asked Jan 5 at 5:31
RupakRupak
1
1
From the command line, what are the results ofwhere python
? Also, is the name of the script you are trying to runopenpnm.py
or something similar?
– Anaksunaman
Jan 5 at 6:30
Do you have 2 versions of Python installed on your device?
– Infected Drake
Jan 5 at 13:27
@Anaksunaman where python gives the following output: INFO: could not find files for the given pattern(s)
– Rupak
Jan 7 at 0:25
I am trying to install a package called openpnm; not calling a script.
– Rupak
Jan 7 at 0:25
@InfectedDrake Not that i know of. How can i check?
– Rupak
Jan 7 at 0:26
add a comment |
From the command line, what are the results ofwhere python
? Also, is the name of the script you are trying to runopenpnm.py
or something similar?
– Anaksunaman
Jan 5 at 6:30
Do you have 2 versions of Python installed on your device?
– Infected Drake
Jan 5 at 13:27
@Anaksunaman where python gives the following output: INFO: could not find files for the given pattern(s)
– Rupak
Jan 7 at 0:25
I am trying to install a package called openpnm; not calling a script.
– Rupak
Jan 7 at 0:25
@InfectedDrake Not that i know of. How can i check?
– Rupak
Jan 7 at 0:26
From the command line, what are the results of
where python
? Also, is the name of the script you are trying to run openpnm.py
or something similar?– Anaksunaman
Jan 5 at 6:30
From the command line, what are the results of
where python
? Also, is the name of the script you are trying to run openpnm.py
or something similar?– Anaksunaman
Jan 5 at 6:30
Do you have 2 versions of Python installed on your device?
– Infected Drake
Jan 5 at 13:27
Do you have 2 versions of Python installed on your device?
– Infected Drake
Jan 5 at 13:27
@Anaksunaman where python gives the following output: INFO: could not find files for the given pattern(s)
– Rupak
Jan 7 at 0:25
@Anaksunaman where python gives the following output: INFO: could not find files for the given pattern(s)
– Rupak
Jan 7 at 0:25
I am trying to install a package called openpnm; not calling a script.
– Rupak
Jan 7 at 0:25
I am trying to install a package called openpnm; not calling a script.
– Rupak
Jan 7 at 0:25
@InfectedDrake Not that i know of. How can i check?
– Rupak
Jan 7 at 0:26
@InfectedDrake Not that i know of. How can i check?
– Rupak
Jan 7 at 0:26
add a comment |
1 Answer
1
active
oldest
votes
The community standard for Python is for packages and their modules to be snake_case
(all lower case and underscores instead of spaces). So I would expect import openpnm
to work.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1390787%2fissue-installing-a-site-package-on-python-3-6-1%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
The community standard for Python is for packages and their modules to be snake_case
(all lower case and underscores instead of spaces). So I would expect import openpnm
to work.
add a comment |
The community standard for Python is for packages and their modules to be snake_case
(all lower case and underscores instead of spaces). So I would expect import openpnm
to work.
add a comment |
The community standard for Python is for packages and their modules to be snake_case
(all lower case and underscores instead of spaces). So I would expect import openpnm
to work.
The community standard for Python is for packages and their modules to be snake_case
(all lower case and underscores instead of spaces). So I would expect import openpnm
to work.
answered Jan 5 at 22:29
l0b0l0b0
5,49122341
5,49122341
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1390787%2fissue-installing-a-site-package-on-python-3-6-1%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
From the command line, what are the results of
where python
? Also, is the name of the script you are trying to runopenpnm.py
or something similar?– Anaksunaman
Jan 5 at 6:30
Do you have 2 versions of Python installed on your device?
– Infected Drake
Jan 5 at 13:27
@Anaksunaman where python gives the following output: INFO: could not find files for the given pattern(s)
– Rupak
Jan 7 at 0:25
I am trying to install a package called openpnm; not calling a script.
– Rupak
Jan 7 at 0:25
@InfectedDrake Not that i know of. How can i check?
– Rupak
Jan 7 at 0:26