How to use virtual environment in Python?

0 votes
I am working on a project offered from my college and I am doing some project of mines in my current machine. How can I create a virtual environment so that I keep my packages seperated?
Dec 17, 2018 in Python by Anjali
• 2,900 points
30 views

1 answer to this question.

0 votes

Virtual environment is very common with Python developers. Now as you are planning to use virtual environment then you should know that you must install python then pip then virtual environment.

You can follow this document here:

http://docs.python-guide.org/en/latest/dev/virtualenvs/

You can also use pyenv it is easy to install and serves the purpose.

Hope this helps.

answered Dec 17, 2018 by Shuvodip

Related Questions In Python

0 votes
2 answers

How to use threading in Python?

 Thread is the smallest unit of processing that ...READ MORE

answered Apr 6 in Python by anonymous
64 views
0 votes
1 answer

How to use “raise” keyword in Python

You can use it to raise errors ...READ MORE

answered Jul 30, 2018 in Python by Priyaj
• 56,160 points
27 views
0 votes
1 answer

How to use string.replace() in python 3.x

replace() is a method of <class 'str'> ...READ MORE

answered Aug 3, 2018 in Python by Priyaj
• 56,160 points
39 views
+1 vote
2 answers

How to use the pass statement in Python

In Python programming, pass is a null statement. The ...READ MORE

answered Apr 5 in Python by anonymous
46 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 128 views
+4 votes
6 answers
0 votes
1 answer

What does calling a function means in Python?

Calling a function means that you are ...READ MORE

answered Dec 17, 2018 in Python by Shuvodip
35 views
0 votes
1 answer

Empty a list in python.

You could use the clear() method of list which is parallel ...READ MORE

answered Dec 17, 2018 in Python by Shuvodip
43 views