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

          How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

          Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?