Issue while installing pip pythonCalling an external command in PythonWhat are metaclasses in Python?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to upgrade all Python packages with pip?Does Python have a string 'contains' substring method?How do I install pip on Windows?Installing specific package versions with pipHow do I install pip on macOS or OS X?“pip install unroll”: “python setup.py egg_info” failed with error code 1

Do Bayesian credible intervals treat the estimated parameter as a random variable?

Can $! cause race conditions when used in scripts running in parallel?

Changing JPEG to RAW to use on Lightroom?

Why doesn't 'd /= d' throw a division by zero exception?

Evaluated vs. unevaluated Association

Very slow boot time and poor perfomance

Can an ISO file damage—or infect—the machine it's being burned on?

Limitations with dynamical systems vs. PDEs?

What is the difference between "Grippe" and "Männergrippe"?

What should come first—characters or plot?

Papers on arXiv solving the same problem at the same time

Command "root" and "subcommands"

What is the loud noise of a helicopter when the rotors are not yet moving?

How does encoder decoder network works?

When calculating a force, why do I get different result when I try to calculate via torque vs via sum of forces at an axis?

How do we tell which part of kinetic energy gives rise to temperature?

Duplicate instruments in unison in an orchestra

Does ostensible/specious make sense in this sentence?

Could this kind of inaccurate sacrifice be countered?

How does the OS tell whether an "Address is already in use"?

"There were either twelve sexes or none."

The Wires Underground

When one problem is added to the previous one

"Opusculum hoc, quamdiu vixero, doctioribus emendandum offero."?



Issue while installing pip python


Calling an external command in PythonWhat are metaclasses in Python?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to upgrade all Python packages with pip?Does Python have a string 'contains' substring method?How do I install pip on Windows?Installing specific package versions with pipHow do I install pip on macOS or OS X?“pip install unroll”: “python setup.py egg_info” failed with error code 1






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















i installed python 3.7.2 still pip was not installed,for pip there must be pip.exe in folder script in directory where python is installed but in my device there nothing in it.



later i tried to install it by running get-pip.py but it throws an exception in command prompt



Command prompt throws exception :-



Installing collected packages: pip, setuptools, wheel Exception: Traceback (most recent call last):
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 187, in subst_vars return re.sub(r'$([a-zA-Z_][a-zA-Z_0-9]*)', _subst, s)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libre.py", line 192, in sub return _compile(pattern, flags).sub(repl, string, count)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 184, in _subst return os.environ[var_name]
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libos.py", line 678, in getitem raise KeyError(key) from None KeyError: 'in'


During handling of the above exception, another exception occurred:



Traceback (most recent call last):
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalcli base_command.py", line 179, in main status = self.run(options, args)
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalcom mandsinstall.py", line 393, in run use_user_site=options.use_user_site,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq __init__.py", line 57, in install_given_reqs **kwargs
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq req_install.py", line 913, in install use_user_site=use_user_site, pycompile=pycompile,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq req_install.py", line 445, in move_wheel_files warn_script_location=warn_script_location,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalwhe el.py", line 320, in move_wheel_files prefix=prefix,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalloc ations.py", line 180, in distutils_scheme i.finalize_options()
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 307, in finalize_options self.expand_basedirs()
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 475, in expand_basedirs self._expand_attrs(['install_base', 'install_platbase', 'root'])
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 469, in _expand_attrs val = subst_vars(val, self.config_vars)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 189, in subst_vars raise ValueError("invalid variable '$%s'" % var) ValueError: invalid variable '$'in''









share|improve this question





















  • 2





    is your username Del$in?

    – wpercy
    Mar 27 at 19:19











  • python 3.x should come pre-bundled with pip. I'd probably try to re-install python3.7

    – C.Nivs
    Mar 27 at 19:22











  • ya thats what i thought it should be pre-bundled but its not there

    – Prathamesh Khandade
    Mar 27 at 19:23











  • @C.Nivs i tried more than once also tried 3.7.1 and 3.7.2 both of them

    – Prathamesh Khandade
    Mar 27 at 19:25












  • @wpercy good catch, that's definitely the issue

    – C.Nivs
    Mar 27 at 19:34

















1















i installed python 3.7.2 still pip was not installed,for pip there must be pip.exe in folder script in directory where python is installed but in my device there nothing in it.



later i tried to install it by running get-pip.py but it throws an exception in command prompt



Command prompt throws exception :-



Installing collected packages: pip, setuptools, wheel Exception: Traceback (most recent call last):
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 187, in subst_vars return re.sub(r'$([a-zA-Z_][a-zA-Z_0-9]*)', _subst, s)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libre.py", line 192, in sub return _compile(pattern, flags).sub(repl, string, count)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 184, in _subst return os.environ[var_name]
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libos.py", line 678, in getitem raise KeyError(key) from None KeyError: 'in'


During handling of the above exception, another exception occurred:



Traceback (most recent call last):
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalcli base_command.py", line 179, in main status = self.run(options, args)
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalcom mandsinstall.py", line 393, in run use_user_site=options.use_user_site,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq __init__.py", line 57, in install_given_reqs **kwargs
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq req_install.py", line 913, in install use_user_site=use_user_site, pycompile=pycompile,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq req_install.py", line 445, in move_wheel_files warn_script_location=warn_script_location,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalwhe el.py", line 320, in move_wheel_files prefix=prefix,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalloc ations.py", line 180, in distutils_scheme i.finalize_options()
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 307, in finalize_options self.expand_basedirs()
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 475, in expand_basedirs self._expand_attrs(['install_base', 'install_platbase', 'root'])
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 469, in _expand_attrs val = subst_vars(val, self.config_vars)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 189, in subst_vars raise ValueError("invalid variable '$%s'" % var) ValueError: invalid variable '$'in''









share|improve this question





















  • 2





    is your username Del$in?

    – wpercy
    Mar 27 at 19:19











  • python 3.x should come pre-bundled with pip. I'd probably try to re-install python3.7

    – C.Nivs
    Mar 27 at 19:22











  • ya thats what i thought it should be pre-bundled but its not there

    – Prathamesh Khandade
    Mar 27 at 19:23











  • @C.Nivs i tried more than once also tried 3.7.1 and 3.7.2 both of them

    – Prathamesh Khandade
    Mar 27 at 19:25












  • @wpercy good catch, that's definitely the issue

    – C.Nivs
    Mar 27 at 19:34













1












1








1








i installed python 3.7.2 still pip was not installed,for pip there must be pip.exe in folder script in directory where python is installed but in my device there nothing in it.



later i tried to install it by running get-pip.py but it throws an exception in command prompt



Command prompt throws exception :-



Installing collected packages: pip, setuptools, wheel Exception: Traceback (most recent call last):
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 187, in subst_vars return re.sub(r'$([a-zA-Z_][a-zA-Z_0-9]*)', _subst, s)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libre.py", line 192, in sub return _compile(pattern, flags).sub(repl, string, count)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 184, in _subst return os.environ[var_name]
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libos.py", line 678, in getitem raise KeyError(key) from None KeyError: 'in'


During handling of the above exception, another exception occurred:



Traceback (most recent call last):
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalcli base_command.py", line 179, in main status = self.run(options, args)
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalcom mandsinstall.py", line 393, in run use_user_site=options.use_user_site,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq __init__.py", line 57, in install_given_reqs **kwargs
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq req_install.py", line 913, in install use_user_site=use_user_site, pycompile=pycompile,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq req_install.py", line 445, in move_wheel_files warn_script_location=warn_script_location,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalwhe el.py", line 320, in move_wheel_files prefix=prefix,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalloc ations.py", line 180, in distutils_scheme i.finalize_options()
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 307, in finalize_options self.expand_basedirs()
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 475, in expand_basedirs self._expand_attrs(['install_base', 'install_platbase', 'root'])
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 469, in _expand_attrs val = subst_vars(val, self.config_vars)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 189, in subst_vars raise ValueError("invalid variable '$%s'" % var) ValueError: invalid variable '$'in''









share|improve this question
















i installed python 3.7.2 still pip was not installed,for pip there must be pip.exe in folder script in directory where python is installed but in my device there nothing in it.



later i tried to install it by running get-pip.py but it throws an exception in command prompt



Command prompt throws exception :-



Installing collected packages: pip, setuptools, wheel Exception: Traceback (most recent call last):
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 187, in subst_vars return re.sub(r'$([a-zA-Z_][a-zA-Z_0-9]*)', _subst, s)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libre.py", line 192, in sub return _compile(pattern, flags).sub(repl, string, count)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 184, in _subst return os.environ[var_name]
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libos.py", line 678, in getitem raise KeyError(key) from None KeyError: 'in'


During handling of the above exception, another exception occurred:



Traceback (most recent call last):
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalcli base_command.py", line 179, in main status = self.run(options, args)
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalcom mandsinstall.py", line 393, in run use_user_site=options.use_user_site,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq __init__.py", line 57, in install_given_reqs **kwargs
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq req_install.py", line 913, in install use_user_site=use_user_site, pycompile=pycompile,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalreq req_install.py", line 445, in move_wheel_files warn_script_location=warn_script_location,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalwhe el.py", line 320, in move_wheel_files prefix=prefix,
File "C:UsersDel$inAppDataLocalTemptmpwzho1r2wpip.zippip_internalloc ations.py", line 180, in distutils_scheme i.finalize_options()
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 307, in finalize_options self.expand_basedirs()
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 475, in expand_basedirs self._expand_attrs(['install_base', 'install_platbase', 'root'])
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilscom mandinstall.py", line 469, in _expand_attrs val = subst_vars(val, self.config_vars)
File "C:UsersDel$inAppDataLocalProgramsPythonPython37libdistutilsuti l.py", line 189, in subst_vars raise ValueError("invalid variable '$%s'" % var) ValueError: invalid variable '$'in''






python pip command-prompt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 19:38









ASR

9261 gold badge6 silver badges22 bronze badges




9261 gold badge6 silver badges22 bronze badges










asked Mar 27 at 19:17









Prathamesh KhandadePrathamesh Khandade

63 bronze badges




63 bronze badges










  • 2





    is your username Del$in?

    – wpercy
    Mar 27 at 19:19











  • python 3.x should come pre-bundled with pip. I'd probably try to re-install python3.7

    – C.Nivs
    Mar 27 at 19:22











  • ya thats what i thought it should be pre-bundled but its not there

    – Prathamesh Khandade
    Mar 27 at 19:23











  • @C.Nivs i tried more than once also tried 3.7.1 and 3.7.2 both of them

    – Prathamesh Khandade
    Mar 27 at 19:25












  • @wpercy good catch, that's definitely the issue

    – C.Nivs
    Mar 27 at 19:34












  • 2





    is your username Del$in?

    – wpercy
    Mar 27 at 19:19











  • python 3.x should come pre-bundled with pip. I'd probably try to re-install python3.7

    – C.Nivs
    Mar 27 at 19:22











  • ya thats what i thought it should be pre-bundled but its not there

    – Prathamesh Khandade
    Mar 27 at 19:23











  • @C.Nivs i tried more than once also tried 3.7.1 and 3.7.2 both of them

    – Prathamesh Khandade
    Mar 27 at 19:25












  • @wpercy good catch, that's definitely the issue

    – C.Nivs
    Mar 27 at 19:34







2




2





is your username Del$in?

– wpercy
Mar 27 at 19:19





is your username Del$in?

– wpercy
Mar 27 at 19:19













python 3.x should come pre-bundled with pip. I'd probably try to re-install python3.7

– C.Nivs
Mar 27 at 19:22





python 3.x should come pre-bundled with pip. I'd probably try to re-install python3.7

– C.Nivs
Mar 27 at 19:22













ya thats what i thought it should be pre-bundled but its not there

– Prathamesh Khandade
Mar 27 at 19:23





ya thats what i thought it should be pre-bundled but its not there

– Prathamesh Khandade
Mar 27 at 19:23













@C.Nivs i tried more than once also tried 3.7.1 and 3.7.2 both of them

– Prathamesh Khandade
Mar 27 at 19:25






@C.Nivs i tried more than once also tried 3.7.1 and 3.7.2 both of them

– Prathamesh Khandade
Mar 27 at 19:25














@wpercy good catch, that's definitely the issue

– C.Nivs
Mar 27 at 19:34





@wpercy good catch, that's definitely the issue

– C.Nivs
Mar 27 at 19:34












2 Answers
2






active

oldest

votes


















1















I'm certain that your username is the reason for this error. Python is trying to create a string of your username but the $ is causing issues. You can see this in the line ValueError: invalid variable '$'in''. Although there are other solutions, changing your username to DelSin will prevent many other headaches too.






share|improve this answer

























  • Ok so should i change my username ?

    – Prathamesh Khandade
    Mar 27 at 19:34


















1















From the code in distutils/utils.py:



def subst_vars (s, local_vars):
"""Perform shell/Perl-style variable substitution on 'string'. Every
occurrence of '$' followed by a name is considered a variable, and
variable is substituted by the value found in the 'local_vars'
dictionary, or in 'os.environ' if it's not in 'local_vars'.
'os.environ' is first checked/augmented to guarantee that it contains
certain values: see 'check_environ()'. Raise ValueError for any
variables not found in either 'local_vars' or 'os.environ'.
"""


This is utilizing the utility that's quite common in bash/Perl scripting, where you can substitute in a value using $:



SOMEPATH='$HOME/somefolder'

echo($SOMEPATH)
# '/path/to/somefolder'


Your username, unfortunately, mimics this and will cause problems until it is changed






share|improve this answer



























    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%2f55384937%2fissue-while-installing-pip-python%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









    1















    I'm certain that your username is the reason for this error. Python is trying to create a string of your username but the $ is causing issues. You can see this in the line ValueError: invalid variable '$'in''. Although there are other solutions, changing your username to DelSin will prevent many other headaches too.






    share|improve this answer

























    • Ok so should i change my username ?

      – Prathamesh Khandade
      Mar 27 at 19:34















    1















    I'm certain that your username is the reason for this error. Python is trying to create a string of your username but the $ is causing issues. You can see this in the line ValueError: invalid variable '$'in''. Although there are other solutions, changing your username to DelSin will prevent many other headaches too.






    share|improve this answer

























    • Ok so should i change my username ?

      – Prathamesh Khandade
      Mar 27 at 19:34













    1














    1










    1









    I'm certain that your username is the reason for this error. Python is trying to create a string of your username but the $ is causing issues. You can see this in the line ValueError: invalid variable '$'in''. Although there are other solutions, changing your username to DelSin will prevent many other headaches too.






    share|improve this answer













    I'm certain that your username is the reason for this error. Python is trying to create a string of your username but the $ is causing issues. You can see this in the line ValueError: invalid variable '$'in''. Although there are other solutions, changing your username to DelSin will prevent many other headaches too.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 27 at 19:29









    101arrowz101arrowz

    55911 bronze badges




    55911 bronze badges















    • Ok so should i change my username ?

      – Prathamesh Khandade
      Mar 27 at 19:34

















    • Ok so should i change my username ?

      – Prathamesh Khandade
      Mar 27 at 19:34
















    Ok so should i change my username ?

    – Prathamesh Khandade
    Mar 27 at 19:34





    Ok so should i change my username ?

    – Prathamesh Khandade
    Mar 27 at 19:34













    1















    From the code in distutils/utils.py:



    def subst_vars (s, local_vars):
    """Perform shell/Perl-style variable substitution on 'string'. Every
    occurrence of '$' followed by a name is considered a variable, and
    variable is substituted by the value found in the 'local_vars'
    dictionary, or in 'os.environ' if it's not in 'local_vars'.
    'os.environ' is first checked/augmented to guarantee that it contains
    certain values: see 'check_environ()'. Raise ValueError for any
    variables not found in either 'local_vars' or 'os.environ'.
    """


    This is utilizing the utility that's quite common in bash/Perl scripting, where you can substitute in a value using $:



    SOMEPATH='$HOME/somefolder'

    echo($SOMEPATH)
    # '/path/to/somefolder'


    Your username, unfortunately, mimics this and will cause problems until it is changed






    share|improve this answer





























      1















      From the code in distutils/utils.py:



      def subst_vars (s, local_vars):
      """Perform shell/Perl-style variable substitution on 'string'. Every
      occurrence of '$' followed by a name is considered a variable, and
      variable is substituted by the value found in the 'local_vars'
      dictionary, or in 'os.environ' if it's not in 'local_vars'.
      'os.environ' is first checked/augmented to guarantee that it contains
      certain values: see 'check_environ()'. Raise ValueError for any
      variables not found in either 'local_vars' or 'os.environ'.
      """


      This is utilizing the utility that's quite common in bash/Perl scripting, where you can substitute in a value using $:



      SOMEPATH='$HOME/somefolder'

      echo($SOMEPATH)
      # '/path/to/somefolder'


      Your username, unfortunately, mimics this and will cause problems until it is changed






      share|improve this answer



























        1














        1










        1









        From the code in distutils/utils.py:



        def subst_vars (s, local_vars):
        """Perform shell/Perl-style variable substitution on 'string'. Every
        occurrence of '$' followed by a name is considered a variable, and
        variable is substituted by the value found in the 'local_vars'
        dictionary, or in 'os.environ' if it's not in 'local_vars'.
        'os.environ' is first checked/augmented to guarantee that it contains
        certain values: see 'check_environ()'. Raise ValueError for any
        variables not found in either 'local_vars' or 'os.environ'.
        """


        This is utilizing the utility that's quite common in bash/Perl scripting, where you can substitute in a value using $:



        SOMEPATH='$HOME/somefolder'

        echo($SOMEPATH)
        # '/path/to/somefolder'


        Your username, unfortunately, mimics this and will cause problems until it is changed






        share|improve this answer













        From the code in distutils/utils.py:



        def subst_vars (s, local_vars):
        """Perform shell/Perl-style variable substitution on 'string'. Every
        occurrence of '$' followed by a name is considered a variable, and
        variable is substituted by the value found in the 'local_vars'
        dictionary, or in 'os.environ' if it's not in 'local_vars'.
        'os.environ' is first checked/augmented to guarantee that it contains
        certain values: see 'check_environ()'. Raise ValueError for any
        variables not found in either 'local_vars' or 'os.environ'.
        """


        This is utilizing the utility that's quite common in bash/Perl scripting, where you can substitute in a value using $:



        SOMEPATH='$HOME/somefolder'

        echo($SOMEPATH)
        # '/path/to/somefolder'


        Your username, unfortunately, mimics this and will cause problems until it is changed







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 27 at 19:30









        C.NivsC.Nivs

        5,3441 gold badge6 silver badges23 bronze badges




        5,3441 gold badge6 silver badges23 bronze badges






























            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%2f55384937%2fissue-while-installing-pip-python%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