11 Create Python Virtual Environment

preview_player
Показать описание
In this lesson, I'll show you how to create a Python Virtual Environment using virtualenvwrapper.

--

This video is from the old version of our course:
Build a Backend REST API with Python & Django - Beginner.

Рекомендации по теме
Комментарии
Автор

mkvirtualenv: command not found
How to resolve this?

keshavmaheshwari
Автор

Vagrant failed to initialize at very early stage..
it says what to do

piyushshitole
Автор

did anybody solve that problem of mkdir command not found

hellymodi
Автор

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'base' (v0) for provider: virtualbox
default: Downloading: base
default:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file C:/Users/Dell/base

TheGlobalNetworker
Автор

I tried to create virtual env but it shows protocol error not sure why. I really like the way you explained things.

milindchavan
Автор

This is the part where everything went wrong for me.
Then 'mkvirtualenv: command not found', so I needed to write "virtualenv profiles_api --python= python3" without 'mk', and then "source profiles_api/bin/activate".
Then 'Workon command not found'.
I tried reinstalling everything that I could've think off, but it did'nt help.

serhiiostrovskyi
Автор

thanks for the tutoriaol man but uhhh, got some issues in this part

doesn't recognize mkvirtualenv as a command, and using virtualenv gets me an error that "it isn't installed", so I do
pip install virtualenv
and a many red lines follow, most of them starting with 'File
after that it told me that im using pip version of 8.1 and version 20 is avaliable and to run
pip install --upgrade pip
then it told me a message that python v2.7 is getting deprecated and stuff
but i'm using python 3.8

and running the install for virtualenv again says
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes


any help?

renixmar
Автор

Traceback (most recent call last):
default: File "/usr/local/bin/pip", line 7, in <module>
default: from pip._internal.cli.main import main
default: File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/main.py", line 60
default: sys.stderr.write(f"ERROR: {exc}")
default: ^
default: SyntaxError:
default: invalid syntax

Showing like this when about to up the server.

balajinamala
Автор

hi,
I deactivated my virtual environment then trying using workon to activate it back but i'm getting "workon:command not founnd" as error message. Can anyone help please!

taiwoadeyemi
Автор

Hi,
you explanation is awesome... anyone can understand ...
thanks a lot


I was working as per your video
i am getting this not found error.


mkvirtualenv: command not found


how to fix this ?

vinodsagar
Автор

Hello who find right solution for mkvirtualenv not found problem

umarkhonovmukhammadyusufkh
Автор

I destroyed my vagrant and up the server, when run mkvirtualenv: it shows command not found

balajinamala
Автор

available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

apt-get install python3-venv

You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/vagrant/profiles_api/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

TheGlobalNetworker
Автор

mkvirtualenv command not found please help!!!

nadineel-saeed