Error reported by virtualenv, used by pipenv installation

dyld: Library not loaded: @rpath/libpython3.6m.dylib
  Referenced from: /Users/.local/share/virtualenvs/customer-base-6LCBHv92/bin/python
  Reason: image not found
ERROR: The executable /Users/.local/share/virtualenvs/customer-base-6LCBHv92/bin/python is not functioning
ERROR: It thinks sys.prefix is "/Users/GitHub/customer-base" (should be "/Users/.local/share/virtualenvs/customer-base-6LCBHv92")
ERROR: virtualenv is not compatible with this system or executable

can solve the problem

many of Baidu"s paths report errors in Chinese, but how can I report errors if I don"t have Chinese in my path?

finally, it is found that the conflict between Anaconda and virtualenv requires the use of pip to uninstall virtualenv first

then use conda to install virtualenv and finally install pipenv

When you pip installed virtualenvwrapper, pip will have installed virtualenv for you as it is a dependency. Unfortunately, that virtualenv is not compatible with Anaconda Python. Fortunately, the Anaconda Distribution has a virtualenv that is compatible. To fix this:
pip uninstall virtualenv
conda install virtualenv
brew install pipenv

pipenv-- three creates the environment using the Python3 of the current system

pipenv-- python 3.6 specify a Python version creation environment

pipenv shell activate virtual environment

pipenv-- where display directory information

pipenv-- venv display virtual environment information

pipenv-- py display Python interpreter information

pipenv install requests install related modules and add them to Pipfile

pipenv install django==1.11 install the fixed version module and add it to Pipfile

pipenv graph View currently installed libraries and their dependencies

pipenv check check for security vulnerabilities

pipenv uninstall-- all Uninstall all packages and remove

from Pipfile
Nov.10,2021

pip3 install-- upgrade pipenv

Menu