Pycharm - unable to add pipenv as project interpreter
Adding pipenv in project interpreter throws an error.
Please help setting up pipenv on pycharm:
Traceback (most recent call last):
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/bin/pipenv", line 11, in <module>
load_entry_point('pipenv==2018.5.18', 'console_scripts', 'pipenv')()
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 676, in main
_verify_python3_env()
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/_unicodefun.py", line 118, in _verify_python3_env
'for mitigation steps.' + extra)
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult http://click.pocoo.org/python3/for mitigation steps.
This system lists a couple of UTF-8 supporting locales that
you can pick from. The following suitable locales where
discovered: af_ZA.UTF-8, am_ET.UTF-8, be_BY.UTF-8, bg_BG.UTF-8, ca_ES.UTF-8, cs_CZ.UTF-8, da_DK.UTF-8, de_AT.UTF-8, de_CH.UTF-8, de_DE.UTF-8, el_GR.UTF-8, en_AU.UTF-8, en_CA.UTF-8, en_GB.UTF-8, en_IE.UTF-8, en_NZ.UTF-8, en_US.UTF-8, es_ES.UTF-8, et_EE.UTF-8, eu_ES.UTF-8, fi_FI.UTF-8, fr_BE.UTF-8, fr_CA.UTF-8, fr_CH.UTF-8, fr_FR.UTF-8, he_IL.UTF-8, hr_HR.UTF-8, hu_HU.UTF-8, hy_AM.UTF-8, is_IS.UTF-8, it_CH.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, kk_KZ.UTF-8, ko_KR.UTF-8, lt_LT.UTF-8, nl_BE.UTF-8, nl_NL.UTF-8, no_NO.UTF-8, pl_PL.UTF-8, pt_BR.UTF-8, pt_PT.UTF-8, ro_RO.UTF-8, ru_RU.UTF-8, sk_SK.UTF-8, sl_SI.UTF-8, sr_YU.UTF-8, sv_SE.UTF-8, tr_TR.UTF-8, uk_UA.UTF-8, zh_CN.UTF-8, zh_HK.UTF-8, zh_TW.UTF-8
pycharm pipenv
|
show 1 more comment
Adding pipenv in project interpreter throws an error.
Please help setting up pipenv on pycharm:
Traceback (most recent call last):
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/bin/pipenv", line 11, in <module>
load_entry_point('pipenv==2018.5.18', 'console_scripts', 'pipenv')()
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 676, in main
_verify_python3_env()
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/_unicodefun.py", line 118, in _verify_python3_env
'for mitigation steps.' + extra)
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult http://click.pocoo.org/python3/for mitigation steps.
This system lists a couple of UTF-8 supporting locales that
you can pick from. The following suitable locales where
discovered: af_ZA.UTF-8, am_ET.UTF-8, be_BY.UTF-8, bg_BG.UTF-8, ca_ES.UTF-8, cs_CZ.UTF-8, da_DK.UTF-8, de_AT.UTF-8, de_CH.UTF-8, de_DE.UTF-8, el_GR.UTF-8, en_AU.UTF-8, en_CA.UTF-8, en_GB.UTF-8, en_IE.UTF-8, en_NZ.UTF-8, en_US.UTF-8, es_ES.UTF-8, et_EE.UTF-8, eu_ES.UTF-8, fi_FI.UTF-8, fr_BE.UTF-8, fr_CA.UTF-8, fr_CH.UTF-8, fr_FR.UTF-8, he_IL.UTF-8, hr_HR.UTF-8, hu_HU.UTF-8, hy_AM.UTF-8, is_IS.UTF-8, it_CH.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, kk_KZ.UTF-8, ko_KR.UTF-8, lt_LT.UTF-8, nl_BE.UTF-8, nl_NL.UTF-8, no_NO.UTF-8, pl_PL.UTF-8, pt_BR.UTF-8, pt_PT.UTF-8, ro_RO.UTF-8, ru_RU.UTF-8, sk_SK.UTF-8, sl_SI.UTF-8, sr_YU.UTF-8, sv_SE.UTF-8, tr_TR.UTF-8, uk_UA.UTF-8, zh_CN.UTF-8, zh_HK.UTF-8, zh_TW.UTF-8
pycharm pipenv
Have you consulted the link?
– Bahrom
Sep 26 '18 at 18:05
First, visit the URL that is given in the error. Second, select from one of the locales listed.
– Code-Apprentice
Sep 26 '18 at 18:05
I tried that: 'export LC_ALL=en_GB.UTF-8' and 'export LANG=en_GB.UTF-8' I did this inside pycharm terminal, still same error. en_GB.UTF-8 was taken from the values returned from locale -a, as suggested by the guide.
– zcahfg2
Sep 26 '18 at 18:13
But why is this happening in the pycharm in the first place, not elsewhere?
– zcahfg2
Sep 26 '18 at 18:15
1
Relevant ticket in PyCharms' bug tracker: youtrack.jetbrains.com/issue/PY-30780
– Pavel Karateev
Sep 27 '18 at 9:01
|
show 1 more comment
Adding pipenv in project interpreter throws an error.
Please help setting up pipenv on pycharm:
Traceback (most recent call last):
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/bin/pipenv", line 11, in <module>
load_entry_point('pipenv==2018.5.18', 'console_scripts', 'pipenv')()
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 676, in main
_verify_python3_env()
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/_unicodefun.py", line 118, in _verify_python3_env
'for mitigation steps.' + extra)
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult http://click.pocoo.org/python3/for mitigation steps.
This system lists a couple of UTF-8 supporting locales that
you can pick from. The following suitable locales where
discovered: af_ZA.UTF-8, am_ET.UTF-8, be_BY.UTF-8, bg_BG.UTF-8, ca_ES.UTF-8, cs_CZ.UTF-8, da_DK.UTF-8, de_AT.UTF-8, de_CH.UTF-8, de_DE.UTF-8, el_GR.UTF-8, en_AU.UTF-8, en_CA.UTF-8, en_GB.UTF-8, en_IE.UTF-8, en_NZ.UTF-8, en_US.UTF-8, es_ES.UTF-8, et_EE.UTF-8, eu_ES.UTF-8, fi_FI.UTF-8, fr_BE.UTF-8, fr_CA.UTF-8, fr_CH.UTF-8, fr_FR.UTF-8, he_IL.UTF-8, hr_HR.UTF-8, hu_HU.UTF-8, hy_AM.UTF-8, is_IS.UTF-8, it_CH.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, kk_KZ.UTF-8, ko_KR.UTF-8, lt_LT.UTF-8, nl_BE.UTF-8, nl_NL.UTF-8, no_NO.UTF-8, pl_PL.UTF-8, pt_BR.UTF-8, pt_PT.UTF-8, ro_RO.UTF-8, ru_RU.UTF-8, sk_SK.UTF-8, sl_SI.UTF-8, sr_YU.UTF-8, sv_SE.UTF-8, tr_TR.UTF-8, uk_UA.UTF-8, zh_CN.UTF-8, zh_HK.UTF-8, zh_TW.UTF-8
pycharm pipenv
Adding pipenv in project interpreter throws an error.
Please help setting up pipenv on pycharm:
Traceback (most recent call last):
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/bin/pipenv", line 11, in <module>
load_entry_point('pipenv==2018.5.18', 'console_scripts', 'pipenv')()
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 676, in main
_verify_python3_env()
File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/_unicodefun.py", line 118, in _verify_python3_env
'for mitigation steps.' + extra)
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult http://click.pocoo.org/python3/for mitigation steps.
This system lists a couple of UTF-8 supporting locales that
you can pick from. The following suitable locales where
discovered: af_ZA.UTF-8, am_ET.UTF-8, be_BY.UTF-8, bg_BG.UTF-8, ca_ES.UTF-8, cs_CZ.UTF-8, da_DK.UTF-8, de_AT.UTF-8, de_CH.UTF-8, de_DE.UTF-8, el_GR.UTF-8, en_AU.UTF-8, en_CA.UTF-8, en_GB.UTF-8, en_IE.UTF-8, en_NZ.UTF-8, en_US.UTF-8, es_ES.UTF-8, et_EE.UTF-8, eu_ES.UTF-8, fi_FI.UTF-8, fr_BE.UTF-8, fr_CA.UTF-8, fr_CH.UTF-8, fr_FR.UTF-8, he_IL.UTF-8, hr_HR.UTF-8, hu_HU.UTF-8, hy_AM.UTF-8, is_IS.UTF-8, it_CH.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, kk_KZ.UTF-8, ko_KR.UTF-8, lt_LT.UTF-8, nl_BE.UTF-8, nl_NL.UTF-8, no_NO.UTF-8, pl_PL.UTF-8, pt_BR.UTF-8, pt_PT.UTF-8, ro_RO.UTF-8, ru_RU.UTF-8, sk_SK.UTF-8, sl_SI.UTF-8, sr_YU.UTF-8, sv_SE.UTF-8, tr_TR.UTF-8, uk_UA.UTF-8, zh_CN.UTF-8, zh_HK.UTF-8, zh_TW.UTF-8
pycharm pipenv
pycharm pipenv
asked Sep 26 '18 at 18:02
zcahfg2zcahfg2
251312
251312
Have you consulted the link?
– Bahrom
Sep 26 '18 at 18:05
First, visit the URL that is given in the error. Second, select from one of the locales listed.
– Code-Apprentice
Sep 26 '18 at 18:05
I tried that: 'export LC_ALL=en_GB.UTF-8' and 'export LANG=en_GB.UTF-8' I did this inside pycharm terminal, still same error. en_GB.UTF-8 was taken from the values returned from locale -a, as suggested by the guide.
– zcahfg2
Sep 26 '18 at 18:13
But why is this happening in the pycharm in the first place, not elsewhere?
– zcahfg2
Sep 26 '18 at 18:15
1
Relevant ticket in PyCharms' bug tracker: youtrack.jetbrains.com/issue/PY-30780
– Pavel Karateev
Sep 27 '18 at 9:01
|
show 1 more comment
Have you consulted the link?
– Bahrom
Sep 26 '18 at 18:05
First, visit the URL that is given in the error. Second, select from one of the locales listed.
– Code-Apprentice
Sep 26 '18 at 18:05
I tried that: 'export LC_ALL=en_GB.UTF-8' and 'export LANG=en_GB.UTF-8' I did this inside pycharm terminal, still same error. en_GB.UTF-8 was taken from the values returned from locale -a, as suggested by the guide.
– zcahfg2
Sep 26 '18 at 18:13
But why is this happening in the pycharm in the first place, not elsewhere?
– zcahfg2
Sep 26 '18 at 18:15
1
Relevant ticket in PyCharms' bug tracker: youtrack.jetbrains.com/issue/PY-30780
– Pavel Karateev
Sep 27 '18 at 9:01
Have you consulted the link?
– Bahrom
Sep 26 '18 at 18:05
Have you consulted the link?
– Bahrom
Sep 26 '18 at 18:05
First, visit the URL that is given in the error. Second, select from one of the locales listed.
– Code-Apprentice
Sep 26 '18 at 18:05
First, visit the URL that is given in the error. Second, select from one of the locales listed.
– Code-Apprentice
Sep 26 '18 at 18:05
I tried that: 'export LC_ALL=en_GB.UTF-8' and 'export LANG=en_GB.UTF-8' I did this inside pycharm terminal, still same error. en_GB.UTF-8 was taken from the values returned from locale -a, as suggested by the guide.
– zcahfg2
Sep 26 '18 at 18:13
I tried that: 'export LC_ALL=en_GB.UTF-8' and 'export LANG=en_GB.UTF-8' I did this inside pycharm terminal, still same error. en_GB.UTF-8 was taken from the values returned from locale -a, as suggested by the guide.
– zcahfg2
Sep 26 '18 at 18:13
But why is this happening in the pycharm in the first place, not elsewhere?
– zcahfg2
Sep 26 '18 at 18:15
But why is this happening in the pycharm in the first place, not elsewhere?
– zcahfg2
Sep 26 '18 at 18:15
1
1
Relevant ticket in PyCharms' bug tracker: youtrack.jetbrains.com/issue/PY-30780
– Pavel Karateev
Sep 27 '18 at 9:01
Relevant ticket in PyCharms' bug tracker: youtrack.jetbrains.com/issue/PY-30780
– Pavel Karateev
Sep 27 '18 at 9:01
|
show 1 more comment
2 Answers
2
active
oldest
votes
Launching Pycharm from the terminal after setting the env vars worked for me, like this:
export LC_ALL=es_ES.UTF-8 && export LANG=es_ES.UTF-8 && open -a PyCharm
You can launch normally after it's already set up once.
This is a poor aproach
– Julius Š.
Jan 26 at 12:57
@JuliusŠ.you are right but it was the only way I managed to, however since the latest version the issue seems to go away
– David Cifuentes
Jan 27 at 19:13
I finally found out that you should add the env variables to~/.profile
, which solves the issue too.
– Julius Š.
Jan 28 at 8:31
add a comment |
My solution was to add the following to the ~/.profile
file.
export LC_ALL=es_ES.UTF-8
export LANG=es_ES.UTF-8
Note that you should add it to the file I mentioned, and NOT to .bashrc
or .zshrc
, as the IDE most probably does not read those.
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%2f52523701%2fpycharm-unable-to-add-pipenv-as-project-interpreter%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
Launching Pycharm from the terminal after setting the env vars worked for me, like this:
export LC_ALL=es_ES.UTF-8 && export LANG=es_ES.UTF-8 && open -a PyCharm
You can launch normally after it's already set up once.
This is a poor aproach
– Julius Š.
Jan 26 at 12:57
@JuliusŠ.you are right but it was the only way I managed to, however since the latest version the issue seems to go away
– David Cifuentes
Jan 27 at 19:13
I finally found out that you should add the env variables to~/.profile
, which solves the issue too.
– Julius Š.
Jan 28 at 8:31
add a comment |
Launching Pycharm from the terminal after setting the env vars worked for me, like this:
export LC_ALL=es_ES.UTF-8 && export LANG=es_ES.UTF-8 && open -a PyCharm
You can launch normally after it's already set up once.
This is a poor aproach
– Julius Š.
Jan 26 at 12:57
@JuliusŠ.you are right but it was the only way I managed to, however since the latest version the issue seems to go away
– David Cifuentes
Jan 27 at 19:13
I finally found out that you should add the env variables to~/.profile
, which solves the issue too.
– Julius Š.
Jan 28 at 8:31
add a comment |
Launching Pycharm from the terminal after setting the env vars worked for me, like this:
export LC_ALL=es_ES.UTF-8 && export LANG=es_ES.UTF-8 && open -a PyCharm
You can launch normally after it's already set up once.
Launching Pycharm from the terminal after setting the env vars worked for me, like this:
export LC_ALL=es_ES.UTF-8 && export LANG=es_ES.UTF-8 && open -a PyCharm
You can launch normally after it's already set up once.
answered Nov 16 '18 at 9:45
David CifuentesDavid Cifuentes
490415
490415
This is a poor aproach
– Julius Š.
Jan 26 at 12:57
@JuliusŠ.you are right but it was the only way I managed to, however since the latest version the issue seems to go away
– David Cifuentes
Jan 27 at 19:13
I finally found out that you should add the env variables to~/.profile
, which solves the issue too.
– Julius Š.
Jan 28 at 8:31
add a comment |
This is a poor aproach
– Julius Š.
Jan 26 at 12:57
@JuliusŠ.you are right but it was the only way I managed to, however since the latest version the issue seems to go away
– David Cifuentes
Jan 27 at 19:13
I finally found out that you should add the env variables to~/.profile
, which solves the issue too.
– Julius Š.
Jan 28 at 8:31
This is a poor aproach
– Julius Š.
Jan 26 at 12:57
This is a poor aproach
– Julius Š.
Jan 26 at 12:57
@JuliusŠ.you are right but it was the only way I managed to, however since the latest version the issue seems to go away
– David Cifuentes
Jan 27 at 19:13
@JuliusŠ.you are right but it was the only way I managed to, however since the latest version the issue seems to go away
– David Cifuentes
Jan 27 at 19:13
I finally found out that you should add the env variables to
~/.profile
, which solves the issue too.– Julius Š.
Jan 28 at 8:31
I finally found out that you should add the env variables to
~/.profile
, which solves the issue too.– Julius Š.
Jan 28 at 8:31
add a comment |
My solution was to add the following to the ~/.profile
file.
export LC_ALL=es_ES.UTF-8
export LANG=es_ES.UTF-8
Note that you should add it to the file I mentioned, and NOT to .bashrc
or .zshrc
, as the IDE most probably does not read those.
add a comment |
My solution was to add the following to the ~/.profile
file.
export LC_ALL=es_ES.UTF-8
export LANG=es_ES.UTF-8
Note that you should add it to the file I mentioned, and NOT to .bashrc
or .zshrc
, as the IDE most probably does not read those.
add a comment |
My solution was to add the following to the ~/.profile
file.
export LC_ALL=es_ES.UTF-8
export LANG=es_ES.UTF-8
Note that you should add it to the file I mentioned, and NOT to .bashrc
or .zshrc
, as the IDE most probably does not read those.
My solution was to add the following to the ~/.profile
file.
export LC_ALL=es_ES.UTF-8
export LANG=es_ES.UTF-8
Note that you should add it to the file I mentioned, and NOT to .bashrc
or .zshrc
, as the IDE most probably does not read those.
answered Jan 28 at 8:30
Julius Š.Julius Š.
639
639
add a comment |
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%2f52523701%2fpycharm-unable-to-add-pipenv-as-project-interpreter%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
Have you consulted the link?
– Bahrom
Sep 26 '18 at 18:05
First, visit the URL that is given in the error. Second, select from one of the locales listed.
– Code-Apprentice
Sep 26 '18 at 18:05
I tried that: 'export LC_ALL=en_GB.UTF-8' and 'export LANG=en_GB.UTF-8' I did this inside pycharm terminal, still same error. en_GB.UTF-8 was taken from the values returned from locale -a, as suggested by the guide.
– zcahfg2
Sep 26 '18 at 18:13
But why is this happening in the pycharm in the first place, not elsewhere?
– zcahfg2
Sep 26 '18 at 18:15
1
Relevant ticket in PyCharms' bug tracker: youtrack.jetbrains.com/issue/PY-30780
– Pavel Karateev
Sep 27 '18 at 9:01