how to run, python script with external libs, and use only venvHow do I prompt for Yes/No/Cancel input in a Linux shell script?How to leave/exit/deactivate a Python virtualenvHow to install psycopg2 with “pip” on Python?CentOS 64 bit bad ELF interpreterPython pip install fails: invalid command egg_infoWhere is virtualenvwrapper.sh after pip install?Python packages not installing in virtualenv using pipHow to write a Python module/package?Difference between env/bin/python and env/lib/pythonX.Y (note the lib)pip throwing ImportError: No module named 'pip._vendor.pkg_resources'
29er Road Tire?
How did the Venus Express detect lightning?
Copy previous line to current line from text file
Manager is threatening to grade me poorly if I don't complete the project
What was Bran's plan to kill the Night King?
Causes of bimodal distributions when bootstrapping a meta-analysis model
What is the solution to this metapuzzle from a university puzzling column?
What does this wavy downward arrow preceding a piano chord mean?
How to increase the size of the cursor in Lubuntu 19.04?
Where are the "shires" in the UK?
Word meaning as function of the composition of its phonemes
Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?
Does the 7th major scale note resolve more strongly to the lower tonic (note 1) than the higher tonic (note 8)?
Would glacier 'trees' be plausible?
Appropriate certificate to ask for a fibre installation (ANSI/TIA-568.3-D?)
SafeCracker #3 - We've Been Blocked
How do LIGO and VIRGO know that a gravitational wave has its origin in a neutron star or a black hole?
Shutter speed -vs- effective image stabilisation
How can I get people to remember my character's gender?
Understanding trademark infringements in a world where many dictionary words are trademarks?
Wrong answer from DSolve when solving a differential equation
Something that can be activated/enabled
How I can I roll a number of non-digital dice to get a random number between 1 and 150?
Adjacent DEM color matching in QGIS
how to run, python script with external libs, and use only venv
How do I prompt for Yes/No/Cancel input in a Linux shell script?How to leave/exit/deactivate a Python virtualenvHow to install psycopg2 with “pip” on Python?CentOS 64 bit bad ELF interpreterPython pip install fails: invalid command egg_infoWhere is virtualenvwrapper.sh after pip install?Python packages not installing in virtualenv using pipHow to write a Python module/package?Difference between env/bin/python and env/lib/pythonX.Y (note the lib)pip throwing ImportError: No module named 'pip._vendor.pkg_resources'
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I write some host monitoring script on python2.7 + rrdtool lib.
And I have question: "how to run python script with external lib when I don't have installed pip on linux", "external libs" I mean not standard libs installed python 2.7.
- I try to use python virtual python-virtual-environments
- also I try to use activate_this.py
- and I try to use pip from env directory but I have error - bad python bad interpreter: no such file or directory
And my main question is how to use python and pip only from python-virtual-environments, without system python and system libs.
GitHub link for code: https://github.com/ArtemKyrylov/Internet_monitor
linux python-2.7 pip virtualenv
add a comment |
I write some host monitoring script on python2.7 + rrdtool lib.
And I have question: "how to run python script with external lib when I don't have installed pip on linux", "external libs" I mean not standard libs installed python 2.7.
- I try to use python virtual python-virtual-environments
- also I try to use activate_this.py
- and I try to use pip from env directory but I have error - bad python bad interpreter: no such file or directory
And my main question is how to use python and pip only from python-virtual-environments, without system python and system libs.
GitHub link for code: https://github.com/ArtemKyrylov/Internet_monitor
linux python-2.7 pip virtualenv
add a comment |
I write some host monitoring script on python2.7 + rrdtool lib.
And I have question: "how to run python script with external lib when I don't have installed pip on linux", "external libs" I mean not standard libs installed python 2.7.
- I try to use python virtual python-virtual-environments
- also I try to use activate_this.py
- and I try to use pip from env directory but I have error - bad python bad interpreter: no such file or directory
And my main question is how to use python and pip only from python-virtual-environments, without system python and system libs.
GitHub link for code: https://github.com/ArtemKyrylov/Internet_monitor
linux python-2.7 pip virtualenv
I write some host monitoring script on python2.7 + rrdtool lib.
And I have question: "how to run python script with external lib when I don't have installed pip on linux", "external libs" I mean not standard libs installed python 2.7.
- I try to use python virtual python-virtual-environments
- also I try to use activate_this.py
- and I try to use pip from env directory but I have error - bad python bad interpreter: no such file or directory
And my main question is how to use python and pip only from python-virtual-environments, without system python and system libs.
GitHub link for code: https://github.com/ArtemKyrylov/Internet_monitor
linux python-2.7 pip virtualenv
linux python-2.7 pip virtualenv
asked Mar 22 at 23:07
Merser5Merser5
33
33
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script
Hi Ali, what you mean import, add this LIB as system path or something else? Thank you for your feedback.
– Merser5
Mar 23 at 9:52
you're welcome Merser5. if you want to use external library in your virtualenv, just put it into Internet_monitor/python-virtual-environments/env/lib/python2.7 and use it.
– Ali Hallaji
Mar 23 at 10:37
Hi Ali, I have problem with import, still similar problem
– Merser5
Mar 24 at 0:19
you need to install python-rrdtool in your system apt install python-rrdtool and path/Internet_monitor/linux_run.sh
– Ali Hallaji
Mar 24 at 17:12
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%2f55308885%2fhow-to-run-python-script-with-external-libs-and-use-only-venv%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
copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script
Hi Ali, what you mean import, add this LIB as system path or something else? Thank you for your feedback.
– Merser5
Mar 23 at 9:52
you're welcome Merser5. if you want to use external library in your virtualenv, just put it into Internet_monitor/python-virtual-environments/env/lib/python2.7 and use it.
– Ali Hallaji
Mar 23 at 10:37
Hi Ali, I have problem with import, still similar problem
– Merser5
Mar 24 at 0:19
you need to install python-rrdtool in your system apt install python-rrdtool and path/Internet_monitor/linux_run.sh
– Ali Hallaji
Mar 24 at 17:12
add a comment |
copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script
Hi Ali, what you mean import, add this LIB as system path or something else? Thank you for your feedback.
– Merser5
Mar 23 at 9:52
you're welcome Merser5. if you want to use external library in your virtualenv, just put it into Internet_monitor/python-virtual-environments/env/lib/python2.7 and use it.
– Ali Hallaji
Mar 23 at 10:37
Hi Ali, I have problem with import, still similar problem
– Merser5
Mar 24 at 0:19
you need to install python-rrdtool in your system apt install python-rrdtool and path/Internet_monitor/linux_run.sh
– Ali Hallaji
Mar 24 at 17:12
add a comment |
copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script
copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script
answered Mar 23 at 7:09
Ali HallajiAli Hallaji
9031019
9031019
Hi Ali, what you mean import, add this LIB as system path or something else? Thank you for your feedback.
– Merser5
Mar 23 at 9:52
you're welcome Merser5. if you want to use external library in your virtualenv, just put it into Internet_monitor/python-virtual-environments/env/lib/python2.7 and use it.
– Ali Hallaji
Mar 23 at 10:37
Hi Ali, I have problem with import, still similar problem
– Merser5
Mar 24 at 0:19
you need to install python-rrdtool in your system apt install python-rrdtool and path/Internet_monitor/linux_run.sh
– Ali Hallaji
Mar 24 at 17:12
add a comment |
Hi Ali, what you mean import, add this LIB as system path or something else? Thank you for your feedback.
– Merser5
Mar 23 at 9:52
you're welcome Merser5. if you want to use external library in your virtualenv, just put it into Internet_monitor/python-virtual-environments/env/lib/python2.7 and use it.
– Ali Hallaji
Mar 23 at 10:37
Hi Ali, I have problem with import, still similar problem
– Merser5
Mar 24 at 0:19
you need to install python-rrdtool in your system apt install python-rrdtool and path/Internet_monitor/linux_run.sh
– Ali Hallaji
Mar 24 at 17:12
Hi Ali, what you mean import, add this LIB as system path or something else? Thank you for your feedback.
– Merser5
Mar 23 at 9:52
Hi Ali, what you mean import, add this LIB as system path or something else? Thank you for your feedback.
– Merser5
Mar 23 at 9:52
you're welcome Merser5. if you want to use external library in your virtualenv, just put it into Internet_monitor/python-virtual-environments/env/lib/python2.7 and use it.
– Ali Hallaji
Mar 23 at 10:37
you're welcome Merser5. if you want to use external library in your virtualenv, just put it into Internet_monitor/python-virtual-environments/env/lib/python2.7 and use it.
– Ali Hallaji
Mar 23 at 10:37
Hi Ali, I have problem with import, still similar problem
– Merser5
Mar 24 at 0:19
Hi Ali, I have problem with import, still similar problem
– Merser5
Mar 24 at 0:19
you need to install python-rrdtool in your system apt install python-rrdtool and path/Internet_monitor/linux_run.sh
– Ali Hallaji
Mar 24 at 17:12
you need to install python-rrdtool in your system apt install python-rrdtool and path/Internet_monitor/linux_run.sh
– Ali Hallaji
Mar 24 at 17:12
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%2f55308885%2fhow-to-run-python-script-with-external-libs-and-use-only-venv%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