Pipenv: error when i run pipenv install

Created on 29 Jun 2018  Â·  16Comments  Â·  Source: pypa/pipenv

1.environment: windows
2.python-version: 3.6.5

I'm through run pip install pipenv install pipenv, but when i run pipenv install it will error.

The error message is as follows:

pipenv install

Creating a virtualenv for this project…
Using d:\users\appdata\local\programs\python\python36\python.exe (3.6.5) to create virtualenv…
Already using interpreter d:\users\appdata\local\programs\python\python36\python.exe
Using base prefix 'd:\\users\\appdata\\local\\programs\\python\\python36'
New python executable in C:\Users\.virtualenvs\python-client-UUQ0goHc\Scripts\python.exe
Installing setuptools, pip, wheel...
  Complete output from command C:\Users\.virtua...c\Scripts\python.exe - setuptools pip wheel:
  Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
ModuleNotFoundError: No module named 'pkgutil'
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
  File "d:\users\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\users\appdata\local\programs\python\python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 2343, in <module>
    main()
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 712, in main
    symlink=options.symlink)
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 947, in create_environment
    download=download,
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 904, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 796, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command C:\Users\.virtua...c\Scripts\python.exe - setuptools pip wheel failed with error code 1

Virtualenv location:
requirements.txt found, instead of Pipfile! Converting…
Traceback (most recent call last):
  File "d:\users\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\users\appdata\local\programs\python\python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Users\AppData\Local\Programs\Python\Python36\Scripts\pipenv.exe\__main__.py", line 9, in <module>
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\vendor\click\core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\vendor\click\core.py", line 697, in main
    rv = self.invoke(ctx)
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\vendor\click\core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\vendor\click\core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\vendor\click\core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\cli.py", line 402, in install
    selective_upgrade=selective_upgrade,
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\core.py", line 1781, in do_install
    skip_requirements=skip_requirements,
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\core.py", line 650, in ensure_project
    ensure_pipfile(validate=validate, skip_requirements=skip_requirements, system=system)
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\core.py", line 281, in ensure_pipfile
    project.create_pipfile(python=python)
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\project.py", line 601, in create_pipfile
    required_python = self.which('python')
  File "d:\users\appdata\local\programs\python\python36\lib\site-packages\pipenv\core.py", line 125, in which
    os.path.join(location, 'Scripts'), command
  File "d:\users\appdata\local\programs\python\python36\lib\ntpath.py", line 76, in join
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType

I was try use python3.5 and python3.7, but it also error.Can you help me? Thanks!

Needs More Information

Most helpful comment

adding LANG environment variable fixes the issue for me. add these commands to you .bash_profile or bashrc file

export LC_ALL='en_US.UTF-8'
export LANG='en_US.UTF-8'

All 16 comments

Hi @ChenJunhan! Can you run the command python -m pipenv.help and paste the results here? Without this diagnostic info, we won't be able to provide much help! Thanks!

@erinxocon This is the information that I run the command python -m pipenv.help.

$ python -m pipenv.help output

Pipenv version: '2018.05.18'

Pipenv location: 'D:\\Users\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\pipenv'

Python location: 'D:\\Users\\AppData\\Local\\Programs\\Python\\Python36\\python.exe'

Other Python installations in PATH:

  • 3.6: D:\Users\AppData\Local\Programs\Python\Python36\python.exe

  • 3.6.5: D:\Users\AppData\Local\Programs\Python\Python36\python.exe

  • 3.6.5: C:\Windows\py.exe

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.6.5',
 'os_name': 'nt',
 'platform_machine': 'AMD64',
 'platform_python_implementation': 'CPython',
 'platform_release': '10',
 'platform_system': 'Windows',
 'platform_version': '10.0.16299',
 'python_full_version': '3.6.5',
 'python_version': '3.6',
 'sys_platform': 'win32'}

System environment variables:

  • ALLUSERSPROFILE
  • ANDROID_HOME
  • APPDATA
  • CHOCOLATEYINSTALL
  • CHOCOLATEYLASTPATHUPDATE
  • CLASSPATH
  • COMMONPROGRAMFILES
  • COMMONPROGRAMFILES(X86)
  • COMMONPROGRAMW6432
  • COMPUTERNAME
  • COMSPEC
  • HOMEDRIVE
  • HOMEPATH
  • JAVA_HOME
  • LOCALAPPDATA
  • LOGONSERVER
  • NUMBER_OF_PROCESSORS
  • ONEDRIVE
  • OS
  • PATH
  • PATHEXT
  • PROCESSOR_ARCHITECTURE
  • PROCESSOR_IDENTIFIER
  • PROCESSOR_LEVEL
  • PROCESSOR_REVISION
  • PROGRAMDATA
  • PROGRAMFILES
  • PROGRAMFILES(X86)
  • PROGRAMW6432
  • PROMPT
  • PSMODULEPATH
  • PUBLIC
  • SESSIONNAME
  • SYSTEMDRIVE
  • SYSTEMROOT
  • TEMP
  • TMP
  • USERDOMAIN
  • USERDOMAIN_ROAMINGPROFILE
  • USERNAME
  • USERPROFILE
  • WINDIR
  • PYTHONDONTWRITEBYTECODE
  • PIP_PYTHON_PATH

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: C:\Users\AppData\Local\Programs\Python\Python35\Lib\site-packages\PyQt5;C:\ProgramData\Oracle\Java\javapath;D:\java\jdk\bin;D:\java\jdk\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files\TortoiseSVN\bin;D:\phpStudy\php70n;C:\composer;D:\androidSdk\platform-tools;D:\androidSdk\tools;C:\ProgramData\chocolatey\bin;D:\Program Files\nodejs\;D:\Users\AppData\Local\Programs\Python\Python36\Scripts\;D:\Users\AppData\Local\Programs\Python\Python36\;D:\Users\AppData\Local\Programs\Python\Python37-32\Scripts\;D:\Users\AppData\Local\Programs\Python\Python37-32\;C:\Users\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft VS Code\bin;D:\Microsoft VS Code\bin;C:\Users\AppData\Roaming\Composer\vendor\bin;D:\Egret Wi;E:\php\laravel\vendor\bin;;d:\Program Files (x86)\Egret\Egret Wing 3\bin;C:\Users\\AppData\Roaming\npm

Contents of Pipfile ('E:\test\python-client\Pipfile'):


Make sure you have setuptools and wheel installed: python -m pip install --upgrade setuptools wheel

Then you can upgrade pipenv: python -m pip install --upgrade pipenv

Then try pipenv install again and let us know if you continue to have issues.

I found the problem because of my window's name contains chinese. So I change the window's name and it can run pip install now.

@ChenJunhan Could you provide a way to reproduce the problem? I feel this should be fixable.

Having the same issue.

`Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.
Creating a virtualenv for this project...
Pipfile: /Users/rahulvyas/code/AWS-Snapshot-Analyzer/Pipfile
Using /usr/local/opt/python/bin/python3.7 (3.7.0) to create virtualenv...
â ‹Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/site-packages/pipenv/pew/__main__.py", line 8, in
import pew
File "/usr/local/lib/python3.7/site-packages/pipenv/patched/pew/__init__.py", line 3, in
from . import pew
File "/usr/local/lib/python3.7/site-packages/pipenv/patched/pew/pew.py", line 44, in
from pew._utils import (check_call, invoke, expandpath, own, env_bin_dir,
File "/usr/local/lib/python3.7/site-packages/pipenv/patched/pew/_utils.py", line 25, in
encoding = locale.getlocale()[1] or 'ascii'
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/locale.py", line 587, in getlocale
return _parse_localename(localename)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/locale.py", line 495, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8

Virtualenv location:
Creating a Pipfile for this project...
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 11, in
sys.exit(cli())
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(args, *kwargs)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, *ctx.params)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(
args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pipenv/cli.py", line 435, in install
selective_upgrade=selective_upgrade,
File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 1759, in do_install
pypi_mirror=pypi_mirror,
File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 639, in ensure_project
ensure_pipfile(validate=validate, skip_requirements=skip_requirements, system=system)
File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 288, in ensure_pipfile
project.create_pipfile(python=python)
File "/usr/local/lib/python3.7/site-packages/pipenv/project.py", line 607, in create_pipfile
required_python = self.which('python')
File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 115, in which
p = os.path.join(location, 'bin', command)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/posixpath.py", line 80, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType`

Having the same issue.
````
skey@skeydeMacBook-Pro ~/w/w/w/s/wemind> pipenv install
Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.
Creating a virtualenv for this project...
Pipfile: /Users/skey/www/web/wemind_server/src/wemind/Pipfile
Using /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 (3.6.6) to create virtualenv...
â ‹Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/pew/__main__.py", line 8, in
import pew
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/pew/__init__.py", line 3, in
from . import pew
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/pew/pew.py", line 44, in
from pew._utils import (check_call, invoke, expandpath, own, env_bin_dir,
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/pew/_utils.py", line 25, in
encoding = locale.getlocale()[1] or 'ascii'
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/locale.py", line 581, in getlocale
return _parse_localename(localename)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/locale.py", line 490, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8

Virtualenv location:
Creating a Pipfile for this project...
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 11, in
sys.exit(cli())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(args, *kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, *ctx.params)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(
args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/cli.py", line 435, in install
selective_upgrade=selective_upgrade,
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/core.py", line 1759, in do_install
pypi_mirror=pypi_mirror,
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/core.py", line 639, in ensure_project
ensure_pipfile(validate=validate, skip_requirements=skip_requirements, system=system)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/core.py", line 288, in ensure_pipfile
project.create_pipfile(python=python)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/project.py", line 607, in create_pipfile
required_python = self.which('python')
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/core.py", line 115, in which
p = os.path.join(location, 'bin', command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/posixpath.py", line 80, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
````

python -m pipenv.help

````

$ pipenv --support

Pipenv version: '2018.7.1'

Pipenv location: '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv'

Python location: '/usr/local/bin/python3'

Other Python installations in PATH:

  • 2.6: /usr/bin/python2.6
  • 2.6: /usr/bin/python2.6
  • 2.7: /usr/local/bin/python2.7
  • 2.7: /usr/local/bin/python2.7
  • 2.7: /usr/bin/python2.7
  • 3.6: /usr/local/bin/python3.6m
  • 3.6: /usr/local/bin/python3.6

  • 2.7.10: /usr/bin/python

  • 2.7.14: /usr/local/bin/python2
  • 3.6.6: /usr/local/bin/python3

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.6.6',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '16.6.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT '
                     '2017; root:xnu-3789.60.24~6/RELEASE_X86_64',
 'python_full_version': '3.6.6',
 'python_version': '3.6',
 'sys_platform': 'darwin'}

System environment variables:

  • Apple_PubSub_Socket_Render
  • COLORFGBG
  • COMMAND_MODE
  • GOBIN
  • HOME
  • ITERM_PROFILE
  • ITERM_SESSION_ID
  • LC_CTYPE
  • LOGNAME
  • PATH
  • PWD
  • SECURITYSESSIONID
  • SHELL
  • SHLVL
  • SSH_AUTH_SOCK
  • TERM
  • TERM_PROGRAM
  • TERM_PROGRAM_VERSION
  • TERM_SESSION_ID
  • TMPDIR
  • USER
  • XPC_FLAGS
  • XPC_SERVICE_NAME
  • __CF_USER_TEXT_ENCODING
  • PYTHONDONTWRITEBYTECODE
  • PIP_PYTHON_PATH

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  • SHELL: /usr/local/bin/fish
  • PWD: /Users/skey/www/web/wemind_server/src/wemind

Contents of Pipfile ('/Users/skey/www/web/wemind_server/src/wemind/Pipfile'):


````

Hi both, there is little use to simply say you have the same issue. As I asked above: _Could you provide a way to reproduce the problem?_ With the currently available information, all I can respond is “I don’t have the same issue. Something is wrong with your computer.”

LANG isn't set in those outputs... have you all considered setting the LANG environment variable? There are quite a few issues around this --

https://pipenv.readthedocs.io/en/latest/diagnose/#valueerror-unknown-locale-utf-8
https://github.com/pypa/pipenv/issues/187

adding LANG environment variable fixes the issue for me. add these commands to you .bash_profile or bashrc file

export LC_ALL='en_US.UTF-8'
export LANG='en_US.UTF-8'

Running pipenv install in a Dockerfile file (CentOS 7.1 based) when --system flag is set:

RUN pipenv install --deploy --system

>

Traceback (most recent call last):
  File "/usr/bin/pipenv", line 11, in <module>
    sys.exit(cli())
  File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pipenv/cli.py", line 435, in install
    selective_upgrade=selective_upgrade,
  File "/usr/lib/python3.6/site-packages/pipenv/core.py", line 1943, in do_install
    pypi_mirror=pypi_mirror,
  File "/usr/lib/python3.6/site-packages/pipenv/core.py", line 1322, in do_init
    pypi_mirror=pypi_mirror,
  File "/usr/lib/python3.6/site-packages/pipenv/core.py", line 807, in do_install_dependencies
    pypi_mirror=pypi_mirror,
  File "/usr/lib/python3.6/site-packages/pipenv/core.py", line 1445, in pip_install
    quoted_pip = which_pip(allow_global=allow_global)
  File "/usr/lib/python3.6/site-packages/pipenv/core.py", line 1502, in which_pip
    return which('pip')
  File "/usr/lib/python3.6/site-packages/pipenv/core.py", line 115, in which
    p = os.path.join(location, 'bin', command)
  File "/usr/lib64/python3.6/posixpath.py", line 80, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

But succeeds without the --system flag:
RUN pipenv install --deploy

Env variables are set:

ENV LC_ALL=en_US.UTF-8 \
    LANG=en_US.UTF-8

The problem in my case (see previous post), was that I had no pip in the Docker image, only pip3.6, while pipenv is looking for pip.
So I had created a symlink from pip to pip3.6 and now it works.

RUN ln -s /usr/bin/pip3.6 /usr/bin/pip

I got similar problem can anyone help me to figure out how to fix it?
An error occurred while installing dlib==19.16.0 --Installing initially failed dependencies…
.....
------------------------']
ERROR: ERROR: Package installation failed...
root@kidd:/home/kidd# python -m pipenv.help output

$ pipenv --support

Pipenv version: '2018.11.26'

Pipenv location: '/usr/local/lib/python3.6/dist-packages/pipenv'

Python location: '/usr/bin/python'

Python installations found:

  • 3.6.7: /usr/bin/python3.6
  • 3.6.7: /usr/bin/python3.6m
  • 3.5.2: /usr/bin/python3.5m
  • 3.5.2: /usr/bin/python3.5
  • 2.7.12: /usr/bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.6.7',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.15.0-46-generic',
 'platform_system': 'Linux',
 'platform_version': '#49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019',
 'python_full_version': '3.6.7',
 'python_version': '3.6',
 'sys_platform': 'linux'}

System environment variables:

  • LC_PAPER
  • LC_ADDRESS
  • LC_MONETARY
  • SHELL
  • TERM
  • LC_NUMERIC
  • CUDA_HOME
  • USER
  • LD_LIBRARY_PATH
  • LC_TELEPHONE
  • LS_COLORS
  • SUDO_USER
  • SUDO_UID
  • USERNAME
  • MAIL
  • PATH
  • LC_IDENTIFICATION
  • PWD
  • LANG
  • LC_MEASUREMENT
  • SHLVL
  • SUDO_COMMAND
  • HOME
  • LANGUAGE
  • LOGNAME
  • LESSOPEN
  • SUDO_GID
  • DISPLAY
  • LESSCLOSE
  • LC_TIME
  • XAUTHORITY
  • LC_NAME
  • _
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /usr/local/cuda-9.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
  • SHELL: /bin/bash
  • LANG: en_US.UTF-8
  • PWD: /home/kidd

Seems that this happens because of non-ASCII characters in paths: https://github.com/pypa/virtualenv/issues/1204 https://github.com/pypa/virtualenv/issues/457

C:UsersHP>pip install --user --upgrade pip
Traceback (most recent call last):
File "c:usershpappdatalocalprogramspythonpython37librunpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:usershpappdatalocalprogramspythonpython37librunpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:UsersHPAppDataLocalProgramsPythonPython37Scriptspip.exe__main__.py", line 9, in
TypeError: 'module' object is not callable

Hi @ChenJunhan! Can you run the command python -m pipenv.help and paste the results here? Without this diagnostic info, we won't be able to provide much help! Thanks!

$ python -m pipenv.help

$ pipenv --support

Pipenv version: '2020.6.2'

Pipenv location: 'P:\\mumbai_office\\wharfStreetHub\\wshubvenv\\lib\\site-packages\\pipenv'

Python location: 'P:\\mumbai_office\\wharfStreetHub\\wshubvenv\\Scripts\\python.exe'

Python installations found:

  • 3.8.3: C:\Users\Admin\AppData\Local\Programs\Python\Python38\python.exe

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.8.3',
 'os_name': 'nt',
 'platform_machine': 'AMD64',
 'platform_python_implementation': 'CPython',
 'platform_release': '10',
 'platform_system': 'Windows',
 'platform_version': '10.0.18362',
 'python_full_version': '3.8.3',
 'python_version': '3.8',
 'sys_platform': 'win32'}

System environment variables:

  • ALLUSERSPROFILE
  • APPDATA
  • COLORTERM
  • COMMONPROGRAMFILES
  • COMPUTERNAME
  • COMSPEC
  • CHOCOLATEYINSTALL
  • CHOCOLATEYLASTPATHUPDATE
  • COMMONPROGRAMFILES(X86)
  • COMMONPROGRAMW6432
  • DRIVERDATA
  • ETHEREUM_SOCKET
  • EXEPATH
  • FPS_BROWSER_APP_PROFILE_STRING
  • FPS_BROWSER_USER_PROFILE_STRING
  • GDAL_DATA
  • GIT_ASKPASS
  • GOPATH
  • HOME
  • HOMEDRIVE
  • HOMEPATH
  • LANG
  • LOCALAPPDATA
  • LOGONSERVER
  • MOZ_PLUGIN_PATH
  • MSYSTEM
  • NUMBER_OF_PROCESSORS
  • NVM_HOME
  • NVM_SYMLINK
  • OLDPWD
  • OPENSSL_CONF
  • ORIGINAL_XDG_CURRENT_DESKTOP
  • OS
  • ONEDRIVE
  • ONEDRIVECONSUMER
  • PATH
  • PATHEXT
  • PLINK_PROTOCOL
  • POSTGIS_ENABLE_OUTDB_RASTERS
  • POSTGIS_GDAL_ENABLED_DRIVERS
  • PROCESSOR_ARCHITECTURE
  • PROCESSOR_IDENTIFIER
  • PROCESSOR_LEVEL
  • PROCESSOR_REVISION
  • PROGRAMFILES
  • PS1
  • PSMODULEPATH
  • PUBLIC
  • PWD
  • PROGRAMDATA
  • PROGRAMFILES(X86)
  • PROGRAMW6432
  • PYCHARM COMMUNITY EDITION
  • SESSIONNAME
  • SHLVL
  • SYSTEMDRIVE
  • SYSTEMROOT
  • TEMP
  • TERM
  • TERM_PROGRAM
  • TERM_PROGRAM_VERSION
  • TMP
  • USERDOMAIN
  • USERDOMAIN_ROAMINGPROFILE
  • USERNAME
  • USERPROFILE
  • VBOX_MSI_INSTALL_PATH
  • VIRTUAL_ENV
  • VS140COMNTOOLS
  • VSCODE_GIT_ASKPASS_MAIN
  • VSCODE_GIT_ASKPASS_NODE
  • VSCODE_GIT_IPC_HANDLE
  • WINDIR
  • _
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: P;P:\mumbai_office\wharfStreetHub\wshubvenv\Scripts;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Admin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\heroku\bin;C:\sqlite;C:\Program Files\Amazon\AWSCLI\bin;C:\Program Files\WinZip;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86;C:\Users\Admin\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\nodejs;C:\Users\Admin\AppData\Local\Programs\Julia\Julia-1.4.1;C:\Users\Admin\AppData\Local\Programs\Julia\Julia-1.4.1\bin;C:\Go\bin;C:\Program Files\Geth;P:\flutterDart\flutter\bin;C:\Users\Admin\AppData\Local\Programs\Python\Python38\Scripts;C:\Users\Admin\AppData\Local\Programs\Python\Python38;C:\Program Files\MySQL\MySQL Shell 8.0\bin;C:\Users\Admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\heroku\bin;C:\Users\Admin\.babun;C:\Program Files\WinZip;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Users\Admin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\bin;C:\Users\Admin\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\Admin\AppData\Roaming\npm;C:\Users\Admin\AppData\Local\Programs\Julia\Julia-1.4.1;C:\Users\Admin\AppData\Local\Programs\Julia\Julia-1.4.1\bin;C:\Users\Admin\go\bin;P:\flutterDart\flutter\bin
  • LANG: en_US.UTF-8
  • PWD: P:/mumbai_office/wharfStreetHub/wshub
  • VIRTUAL_ENV: P:\mumbai_office\wharfStreetHub\wshubvenv

Was this page helpful?
0 / 5 - 0 ratings