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

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현