Error solved: “command not found: mkvirtualenv”

项月亮
1 min readJan 16, 2020

--

Description

When finishing installing virtualenvwrapper on macOS, the build-in command mkvirtualenv will not work with the error message “command not found: mkvirtualenv”.

Solution

which virtualenvwrapper.sh

Get the defult path /Library/Frameworks/Python.framework/Versions/3.7/bin/virtualenvwrapper.sh

vim ~/.bash_profile

Modify the content to

export WORKON_HOME=[IT'S THE DIRECTION PATH YOU SPECIFY]source /Library/Frameworks/Python.framework/Versions/3.7/bin/virtualenvwrapper.sh

Attention

All Django work repository will exsit in the directory your specify.

The following command to work

source ~/.bash_profile

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response