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;








0















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.



  1. I try to use python virtual python-virtual-environments

  2. also I try to use activate_this.py

  3. 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










share|improve this question




























    0















    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.



    1. I try to use python virtual python-virtual-environments

    2. also I try to use activate_this.py

    3. 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










    share|improve this question
























      0












      0








      0








      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.



      1. I try to use python virtual python-virtual-environments

      2. also I try to use activate_this.py

      3. 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










      share|improve this question














      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.



      1. I try to use python virtual python-virtual-environments

      2. also I try to use activate_this.py

      3. 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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 23:07









      Merser5Merser5

      33




      33






















          1 Answer
          1






          active

          oldest

          votes


















          0














          copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script






          share|improve this answer























          • 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












          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
          );



          );













          draft saved

          draft discarded


















          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









          0














          copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script






          share|improve this answer























          • 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
















          0














          copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script






          share|improve this answer























          • 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














          0












          0








          0







          copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script






          share|improve this answer













          copy the library in Internet_monitor/python-virtual-environments/env/lib/python2.7 and import that in your python script







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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


















          • 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




















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript