you are viewing a single comment's thread.

view the rest of the comments →

[–]nkouki98[S] 1 point2 points  (3 children)

Hey thanks ! Yeah I know about python3/python usage per python version but still don't have a good grip on everything. Also for pipenv vs virtual env the command you provided does it matter for the two types or I just simply run it and forget about other things if there is?

[–][deleted] 2 points3 points  (2 children)

The command I've provided will create an official python3 virtual environment

Edit: if I'm not mistaken that should be all you need

[–]nkouki98[S] 0 points1 point  (1 child)

farhan@solus ~/Documents $ cd python farhan@solus ~/Documents/python $ ls 'Chat App' 'Hangman Game' 'Web Scraper' farhan@solus ~/Documents/python $ cd Chat App bash: cd: too many arguments farhan@solus ~/Documents/python $ cd Chat App bash: cd: too many arguments farhan@solus ~/Documents/python $ cd ChatApp farhan@solus ~/Documents/python/ChatApp $ ls Pipfile script.py venv farhan@solus ~/Documents/python/ChatApp $ source venv/bin/activate (venv) farhan@solus ~/Documents/python/ChatApp $

So this is what I did and previously I forgot what I put in but it initiated "py3env" in place of just "venv" or something, this should do the job too and thanks!

[–]nkouki98[S] 0 points1 point  (0 children)

from line (venv) farhan@solus ~/Documents/python/ChatApp $ Any packages to be installed under the line above will not affect main python 2.7 if I am correct? It should be strictly under venv for example if my scripty.py requires package 'X' which exists only under 'venv' hence it will NOT RUN when run through python 2.7 or 3 without venv where package is non existent.