• pipeenv error


    [root@mhc tmp]# pipenv --python 3.6
    Creating a virtualenv for this project…
    Using /root/python3/bin/python3.6m (3.6.4) to create virtualenv…
    ⠋Running virtualenv with interpreter /root/python3/bin/python3.6m
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/virtualenv.py", line 8, in <module>
        import base64
      File "/root/python3/lib/python3.6/base64.py", line 9, in <module>
        import re
      File "/root/python3/lib/python3.6/re.py", line 125, in <module>
        import functools
      File "/root/python3/lib/python3.6/functools.py", line 21, in <module>
        from collections import namedtuple
      File "/root/python3/lib/python3.6/collections/__init__.py", line 32, in <module>
        from reprlib import recursive_repr as _recursive_repr
      File "/usr/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in <module>
        raise ImportError('This package should not be accessible on Python 3. '
    ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
    Error while trying to remove the /root/.local/share/virtualenvs/tmp-XVr6zr33 env:
    No such file or directory

    Virtualenv location:
    Traceback (most recent call last):
      File "/usr/bin/pipenv", line 11, in <module>
        load_entry_point('pipenv==2018.5.18', 'console_scripts', 'pipenv')()
      File "/usr/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
        return self.main(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 697, in main
        rv = self.invoke(ctx)
      File "/usr/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 1043, in invoke
        return Command.invoke(self, ctx)
      File "/usr/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/usr/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
        return callback(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
        return f(get_current_context(), *args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pipenv/cli.py", line 270, in cli
        three=three, python=python, warn=True, site_packages=site_packages
      File "/usr/lib/python2.7/site-packages/pipenv/core.py", line 650, in ensure_project
        ensure_pipfile(validate=validate, skip_requirements=skip_requirements, system=system)
      File "/usr/lib/python2.7/site-packages/pipenv/core.py", line 260, in ensure_pipfile
        python = which('python') if not (USING_DEFAULT_PYTHON or system) else None
      File "/usr/lib/python2.7/site-packages/pipenv/core.py", line 128, in which
        p = os.sep.join([location] + ['bin/{0}'.format(command)])
    TypeError: sequence item 0: expected string, NoneType found
    ===================================

    pip install virtualenv --upgrade
  • 相关阅读:
    使用 @Autowired 的时候,到底是写接口还是实现类?
    socket的简单例子
    java 将文件夹所有的文件合并到指定的文件夹下
    java 复制某一文件夹下的所有文件到另一个文件夹下
    java Date日期总结的一些转换的方法
    java 可排序的数值得字符串,转化成list集合后进行的排序的几种方法
    java 查看文件的大小的方法
    java 从一个总的list集合中,去掉指定的集合元素,得到新的集合
    java 可拆成数组的字符串,去掉重复元素的一种方法
    将博客搬至CSDN
  • 原文地址:https://www.cnblogs.com/mhc-fly/p/9218294.html
Copyright © 2020-2023  润新知