How do I force Pycharm to recognize and use Python 3.6.1 libraries?











up vote
1
down vote

favorite
1












Same as above. Recently I broke my system and then wiped and reinstalled. I initially managed to get python 3.6 working in Pycharm with a new installed before breaking things again. I didn't do anything special and merely retraced my steps only to find Pycharm only seeing 2.7 and 3.5 instead of 3.6 on my 3rd install.



I want to make use of the most current version of Python due to the features it's released. How do I set up environment variables to recognize 3.6.1 for development purposes? I did it a few times on Windows but merely went into Advanced system settings and added a few lines in a window.



I installed Python 3.6.1 successfully on Mint; How can I duplicate the above process for Pycharm on Linux?










share|improve this question




























    up vote
    1
    down vote

    favorite
    1












    Same as above. Recently I broke my system and then wiped and reinstalled. I initially managed to get python 3.6 working in Pycharm with a new installed before breaking things again. I didn't do anything special and merely retraced my steps only to find Pycharm only seeing 2.7 and 3.5 instead of 3.6 on my 3rd install.



    I want to make use of the most current version of Python due to the features it's released. How do I set up environment variables to recognize 3.6.1 for development purposes? I did it a few times on Windows but merely went into Advanced system settings and added a few lines in a window.



    I installed Python 3.6.1 successfully on Mint; How can I duplicate the above process for Pycharm on Linux?










    share|improve this question


























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      Same as above. Recently I broke my system and then wiped and reinstalled. I initially managed to get python 3.6 working in Pycharm with a new installed before breaking things again. I didn't do anything special and merely retraced my steps only to find Pycharm only seeing 2.7 and 3.5 instead of 3.6 on my 3rd install.



      I want to make use of the most current version of Python due to the features it's released. How do I set up environment variables to recognize 3.6.1 for development purposes? I did it a few times on Windows but merely went into Advanced system settings and added a few lines in a window.



      I installed Python 3.6.1 successfully on Mint; How can I duplicate the above process for Pycharm on Linux?










      share|improve this question















      Same as above. Recently I broke my system and then wiped and reinstalled. I initially managed to get python 3.6 working in Pycharm with a new installed before breaking things again. I didn't do anything special and merely retraced my steps only to find Pycharm only seeing 2.7 and 3.5 instead of 3.6 on my 3rd install.



      I want to make use of the most current version of Python due to the features it's released. How do I set up environment variables to recognize 3.6.1 for development purposes? I did it a few times on Windows but merely went into Advanced system settings and added a few lines in a window.



      I installed Python 3.6.1 successfully on Mint; How can I duplicate the above process for Pycharm on Linux?







      linux-mint development python3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 3 '17 at 10:46

























      asked Jun 3 '17 at 9:19









      Lusus Naturae

      4210




      4210






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          Try File -> Settings... -> Project -> Project interpreter -> click on the little wheel and select Add local and then select your 3.6.1 environment






          share|improve this answer





















          • Despite installing it using these instructions: tecadmin.net/install-python-3-6-ubuntu-linuxmint It didn't work. I then tried adding a ppa from this: askubuntu.com/questions/865554/… and got these errors:
            – Lusus Naturae
            Jun 3 '17 at 10:39












          • ImportError: cannot import name '_remove_dead_weakref' dpkg: error processing package python3.6-minimal (--configure): subprocess installed post-installation script returned error exit status 1 Setting up libpython3.6-stdlib:amd64 (3.6.1-1~16.04.york0) ... dpkg: dependency problems prevent configuration of python3.6: python3.6 depends on python3.6-minimal (= 3.6.1-1~16.04.york0); however: Package python3.6-minimal is not configured yet.
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • dpkg: error processing package python3.6 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python3.6-minimal python3.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • I am unable to change the interpreter from 2.7 or 3.5 as default choices. There is nothing to select in the drop down menu that mentions anything other than 2.7 or 3.5
            – Lusus Naturae
            Jun 3 '17 at 10:42










          • What errors did you get when you try to install python with the first link you posted?
            – ceccoemi
            Jun 3 '17 at 10:57


















          up vote
          0
          down vote













          I don't know if we can force a project to use a specific before configuring it first. PyCharm auto detects available interpreters and we will have to configure the project to use a specific interpreter and give it a name.



          The following is from the Help docs from PyCharm:



          https://www.jetbrains.com/help/pycharm/configuring-python-interpreter-for-a-project.html



          PyCharm helps assign a Python interpreter for a project.



          So doing, each one of the projects, opened in the same window, can have an interpreter of its own, selected from the list of available interpreters.



          Note that PyCharm stores only the interpreter name in the project settings.



          To configure Python SDK for the current project, follow these steps:





          1. Open the Settings/Preferences dialog box, and click Project Interpreter page.

          2. In the Projects pane, choose the desired project.

          3. Choose SDK from the list of available Python interpreters and virtual environments.
            This list includes:


            • Python interpreters, which reside in standard locations.

            • Virtual environments, which reside under the project folder, or under the folder specified as an environment variable WORKON_HOME.

            • Other Python interpreters, installed locally or remotely.



          4. If the desired interpreter is not in the list, click the cogwheel icon, and configure the desired interpreter as described in the section Configuring Available Python Interpreters.




          https://www.jetbrains.com/help/pycharm/configuring-available-python-interpreters.html






          share|improve this answer























          • Copied and pasted like a champ!
            – Lusus Naturae
            Jun 3 '17 at 10:43











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f368955%2fhow-do-i-force-pycharm-to-recognize-and-use-python-3-6-1-libraries%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Try File -> Settings... -> Project -> Project interpreter -> click on the little wheel and select Add local and then select your 3.6.1 environment






          share|improve this answer





















          • Despite installing it using these instructions: tecadmin.net/install-python-3-6-ubuntu-linuxmint It didn't work. I then tried adding a ppa from this: askubuntu.com/questions/865554/… and got these errors:
            – Lusus Naturae
            Jun 3 '17 at 10:39












          • ImportError: cannot import name '_remove_dead_weakref' dpkg: error processing package python3.6-minimal (--configure): subprocess installed post-installation script returned error exit status 1 Setting up libpython3.6-stdlib:amd64 (3.6.1-1~16.04.york0) ... dpkg: dependency problems prevent configuration of python3.6: python3.6 depends on python3.6-minimal (= 3.6.1-1~16.04.york0); however: Package python3.6-minimal is not configured yet.
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • dpkg: error processing package python3.6 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python3.6-minimal python3.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • I am unable to change the interpreter from 2.7 or 3.5 as default choices. There is nothing to select in the drop down menu that mentions anything other than 2.7 or 3.5
            – Lusus Naturae
            Jun 3 '17 at 10:42










          • What errors did you get when you try to install python with the first link you posted?
            – ceccoemi
            Jun 3 '17 at 10:57















          up vote
          0
          down vote













          Try File -> Settings... -> Project -> Project interpreter -> click on the little wheel and select Add local and then select your 3.6.1 environment






          share|improve this answer





















          • Despite installing it using these instructions: tecadmin.net/install-python-3-6-ubuntu-linuxmint It didn't work. I then tried adding a ppa from this: askubuntu.com/questions/865554/… and got these errors:
            – Lusus Naturae
            Jun 3 '17 at 10:39












          • ImportError: cannot import name '_remove_dead_weakref' dpkg: error processing package python3.6-minimal (--configure): subprocess installed post-installation script returned error exit status 1 Setting up libpython3.6-stdlib:amd64 (3.6.1-1~16.04.york0) ... dpkg: dependency problems prevent configuration of python3.6: python3.6 depends on python3.6-minimal (= 3.6.1-1~16.04.york0); however: Package python3.6-minimal is not configured yet.
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • dpkg: error processing package python3.6 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python3.6-minimal python3.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • I am unable to change the interpreter from 2.7 or 3.5 as default choices. There is nothing to select in the drop down menu that mentions anything other than 2.7 or 3.5
            – Lusus Naturae
            Jun 3 '17 at 10:42










          • What errors did you get when you try to install python with the first link you posted?
            – ceccoemi
            Jun 3 '17 at 10:57













          up vote
          0
          down vote










          up vote
          0
          down vote









          Try File -> Settings... -> Project -> Project interpreter -> click on the little wheel and select Add local and then select your 3.6.1 environment






          share|improve this answer












          Try File -> Settings... -> Project -> Project interpreter -> click on the little wheel and select Add local and then select your 3.6.1 environment







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 3 '17 at 9:30









          ceccoemi

          418614




          418614












          • Despite installing it using these instructions: tecadmin.net/install-python-3-6-ubuntu-linuxmint It didn't work. I then tried adding a ppa from this: askubuntu.com/questions/865554/… and got these errors:
            – Lusus Naturae
            Jun 3 '17 at 10:39












          • ImportError: cannot import name '_remove_dead_weakref' dpkg: error processing package python3.6-minimal (--configure): subprocess installed post-installation script returned error exit status 1 Setting up libpython3.6-stdlib:amd64 (3.6.1-1~16.04.york0) ... dpkg: dependency problems prevent configuration of python3.6: python3.6 depends on python3.6-minimal (= 3.6.1-1~16.04.york0); however: Package python3.6-minimal is not configured yet.
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • dpkg: error processing package python3.6 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python3.6-minimal python3.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • I am unable to change the interpreter from 2.7 or 3.5 as default choices. There is nothing to select in the drop down menu that mentions anything other than 2.7 or 3.5
            – Lusus Naturae
            Jun 3 '17 at 10:42










          • What errors did you get when you try to install python with the first link you posted?
            – ceccoemi
            Jun 3 '17 at 10:57


















          • Despite installing it using these instructions: tecadmin.net/install-python-3-6-ubuntu-linuxmint It didn't work. I then tried adding a ppa from this: askubuntu.com/questions/865554/… and got these errors:
            – Lusus Naturae
            Jun 3 '17 at 10:39












          • ImportError: cannot import name '_remove_dead_weakref' dpkg: error processing package python3.6-minimal (--configure): subprocess installed post-installation script returned error exit status 1 Setting up libpython3.6-stdlib:amd64 (3.6.1-1~16.04.york0) ... dpkg: dependency problems prevent configuration of python3.6: python3.6 depends on python3.6-minimal (= 3.6.1-1~16.04.york0); however: Package python3.6-minimal is not configured yet.
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • dpkg: error processing package python3.6 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python3.6-minimal python3.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
            – Lusus Naturae
            Jun 3 '17 at 10:41










          • I am unable to change the interpreter from 2.7 or 3.5 as default choices. There is nothing to select in the drop down menu that mentions anything other than 2.7 or 3.5
            – Lusus Naturae
            Jun 3 '17 at 10:42










          • What errors did you get when you try to install python with the first link you posted?
            – ceccoemi
            Jun 3 '17 at 10:57
















          Despite installing it using these instructions: tecadmin.net/install-python-3-6-ubuntu-linuxmint It didn't work. I then tried adding a ppa from this: askubuntu.com/questions/865554/… and got these errors:
          – Lusus Naturae
          Jun 3 '17 at 10:39






          Despite installing it using these instructions: tecadmin.net/install-python-3-6-ubuntu-linuxmint It didn't work. I then tried adding a ppa from this: askubuntu.com/questions/865554/… and got these errors:
          – Lusus Naturae
          Jun 3 '17 at 10:39














          ImportError: cannot import name '_remove_dead_weakref' dpkg: error processing package python3.6-minimal (--configure): subprocess installed post-installation script returned error exit status 1 Setting up libpython3.6-stdlib:amd64 (3.6.1-1~16.04.york0) ... dpkg: dependency problems prevent configuration of python3.6: python3.6 depends on python3.6-minimal (= 3.6.1-1~16.04.york0); however: Package python3.6-minimal is not configured yet.
          – Lusus Naturae
          Jun 3 '17 at 10:41




          ImportError: cannot import name '_remove_dead_weakref' dpkg: error processing package python3.6-minimal (--configure): subprocess installed post-installation script returned error exit status 1 Setting up libpython3.6-stdlib:amd64 (3.6.1-1~16.04.york0) ... dpkg: dependency problems prevent configuration of python3.6: python3.6 depends on python3.6-minimal (= 3.6.1-1~16.04.york0); however: Package python3.6-minimal is not configured yet.
          – Lusus Naturae
          Jun 3 '17 at 10:41












          dpkg: error processing package python3.6 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python3.6-minimal python3.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
          – Lusus Naturae
          Jun 3 '17 at 10:41




          dpkg: error processing package python3.6 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python3.6-minimal python3.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
          – Lusus Naturae
          Jun 3 '17 at 10:41












          I am unable to change the interpreter from 2.7 or 3.5 as default choices. There is nothing to select in the drop down menu that mentions anything other than 2.7 or 3.5
          – Lusus Naturae
          Jun 3 '17 at 10:42




          I am unable to change the interpreter from 2.7 or 3.5 as default choices. There is nothing to select in the drop down menu that mentions anything other than 2.7 or 3.5
          – Lusus Naturae
          Jun 3 '17 at 10:42












          What errors did you get when you try to install python with the first link you posted?
          – ceccoemi
          Jun 3 '17 at 10:57




          What errors did you get when you try to install python with the first link you posted?
          – ceccoemi
          Jun 3 '17 at 10:57












          up vote
          0
          down vote













          I don't know if we can force a project to use a specific before configuring it first. PyCharm auto detects available interpreters and we will have to configure the project to use a specific interpreter and give it a name.



          The following is from the Help docs from PyCharm:



          https://www.jetbrains.com/help/pycharm/configuring-python-interpreter-for-a-project.html



          PyCharm helps assign a Python interpreter for a project.



          So doing, each one of the projects, opened in the same window, can have an interpreter of its own, selected from the list of available interpreters.



          Note that PyCharm stores only the interpreter name in the project settings.



          To configure Python SDK for the current project, follow these steps:





          1. Open the Settings/Preferences dialog box, and click Project Interpreter page.

          2. In the Projects pane, choose the desired project.

          3. Choose SDK from the list of available Python interpreters and virtual environments.
            This list includes:


            • Python interpreters, which reside in standard locations.

            • Virtual environments, which reside under the project folder, or under the folder specified as an environment variable WORKON_HOME.

            • Other Python interpreters, installed locally or remotely.



          4. If the desired interpreter is not in the list, click the cogwheel icon, and configure the desired interpreter as described in the section Configuring Available Python Interpreters.




          https://www.jetbrains.com/help/pycharm/configuring-available-python-interpreters.html






          share|improve this answer























          • Copied and pasted like a champ!
            – Lusus Naturae
            Jun 3 '17 at 10:43















          up vote
          0
          down vote













          I don't know if we can force a project to use a specific before configuring it first. PyCharm auto detects available interpreters and we will have to configure the project to use a specific interpreter and give it a name.



          The following is from the Help docs from PyCharm:



          https://www.jetbrains.com/help/pycharm/configuring-python-interpreter-for-a-project.html



          PyCharm helps assign a Python interpreter for a project.



          So doing, each one of the projects, opened in the same window, can have an interpreter of its own, selected from the list of available interpreters.



          Note that PyCharm stores only the interpreter name in the project settings.



          To configure Python SDK for the current project, follow these steps:





          1. Open the Settings/Preferences dialog box, and click Project Interpreter page.

          2. In the Projects pane, choose the desired project.

          3. Choose SDK from the list of available Python interpreters and virtual environments.
            This list includes:


            • Python interpreters, which reside in standard locations.

            • Virtual environments, which reside under the project folder, or under the folder specified as an environment variable WORKON_HOME.

            • Other Python interpreters, installed locally or remotely.



          4. If the desired interpreter is not in the list, click the cogwheel icon, and configure the desired interpreter as described in the section Configuring Available Python Interpreters.




          https://www.jetbrains.com/help/pycharm/configuring-available-python-interpreters.html






          share|improve this answer























          • Copied and pasted like a champ!
            – Lusus Naturae
            Jun 3 '17 at 10:43













          up vote
          0
          down vote










          up vote
          0
          down vote









          I don't know if we can force a project to use a specific before configuring it first. PyCharm auto detects available interpreters and we will have to configure the project to use a specific interpreter and give it a name.



          The following is from the Help docs from PyCharm:



          https://www.jetbrains.com/help/pycharm/configuring-python-interpreter-for-a-project.html



          PyCharm helps assign a Python interpreter for a project.



          So doing, each one of the projects, opened in the same window, can have an interpreter of its own, selected from the list of available interpreters.



          Note that PyCharm stores only the interpreter name in the project settings.



          To configure Python SDK for the current project, follow these steps:





          1. Open the Settings/Preferences dialog box, and click Project Interpreter page.

          2. In the Projects pane, choose the desired project.

          3. Choose SDK from the list of available Python interpreters and virtual environments.
            This list includes:


            • Python interpreters, which reside in standard locations.

            • Virtual environments, which reside under the project folder, or under the folder specified as an environment variable WORKON_HOME.

            • Other Python interpreters, installed locally or remotely.



          4. If the desired interpreter is not in the list, click the cogwheel icon, and configure the desired interpreter as described in the section Configuring Available Python Interpreters.




          https://www.jetbrains.com/help/pycharm/configuring-available-python-interpreters.html






          share|improve this answer














          I don't know if we can force a project to use a specific before configuring it first. PyCharm auto detects available interpreters and we will have to configure the project to use a specific interpreter and give it a name.



          The following is from the Help docs from PyCharm:



          https://www.jetbrains.com/help/pycharm/configuring-python-interpreter-for-a-project.html



          PyCharm helps assign a Python interpreter for a project.



          So doing, each one of the projects, opened in the same window, can have an interpreter of its own, selected from the list of available interpreters.



          Note that PyCharm stores only the interpreter name in the project settings.



          To configure Python SDK for the current project, follow these steps:





          1. Open the Settings/Preferences dialog box, and click Project Interpreter page.

          2. In the Projects pane, choose the desired project.

          3. Choose SDK from the list of available Python interpreters and virtual environments.
            This list includes:


            • Python interpreters, which reside in standard locations.

            • Virtual environments, which reside under the project folder, or under the folder specified as an environment variable WORKON_HOME.

            • Other Python interpreters, installed locally or remotely.



          4. If the desired interpreter is not in the list, click the cogwheel icon, and configure the desired interpreter as described in the section Configuring Available Python Interpreters.




          https://www.jetbrains.com/help/pycharm/configuring-available-python-interpreters.html







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 3 '17 at 14:10









          phk

          3,96652152




          3,96652152










          answered Jun 3 '17 at 9:59









          satishgoda

          1012




          1012












          • Copied and pasted like a champ!
            – Lusus Naturae
            Jun 3 '17 at 10:43


















          • Copied and pasted like a champ!
            – Lusus Naturae
            Jun 3 '17 at 10:43
















          Copied and pasted like a champ!
          – Lusus Naturae
          Jun 3 '17 at 10:43




          Copied and pasted like a champ!
          – Lusus Naturae
          Jun 3 '17 at 10:43


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


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





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2funix.stackexchange.com%2fquestions%2f368955%2fhow-do-i-force-pycharm-to-recognize-and-use-python-3-6-1-libraries%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

          サソリ

          広島県道265号伴広島線

          Accessing regular linux commands in Huawei's Dopra Linux