Pipenv Setup Tutorial for Python Virtual Environments

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 63

  • @ianmubangizi6721
    @ianmubangizi6721 6 лет назад +6

    Finally, you using Pipenv - its so much cleaner

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад +1

      Definitely is. Old habits die hard 👀

    • @TechEats
      @TechEats 6 лет назад

      anaconda auto completion is not working...are you able to get it to work?

  • @Mezklador
    @Mezklador 6 лет назад +3

    BTW, all official advanced features: github.com/pypa/pipenv/blob/master/docs/advanced.rst

  • @jackpaperhands
    @jackpaperhands 4 года назад +3

    I was looking for a tutorial and...Hey, what do you know! I found this real gem :D

  • @tymothylim6550
    @tymothylim6550 3 года назад +1

    Thank you very much for this video! It helps a lot with understanding pipenv!

  • @linuxlegion4312
    @linuxlegion4312 2 года назад

    Great job 👏

  • @kroloskar
    @kroloskar 6 лет назад +3

    So how do you manage multiple projects/environments? How do you switch venvs? Thanks :)

  • @mateuszmrowiec4265
    @mateuszmrowiec4265 6 лет назад +4

    Great stuff!! More python please!😁

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад

      Suggestions?

    • @mateuszmrowiec4265
      @mateuszmrowiec4265 6 лет назад

      CodingEntrepreneurs advance usage of decorators, version control like git with local ssh keys, upload and usage of self created libraries from github.. ect 😅

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад

      Like custom decorators?

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад +1

      Also, check this out: ruclips.net/video/YIdXBq2_RN8/видео.html

    • @mateuszmrowiec4265
      @mateuszmrowiec4265 6 лет назад

      CodingEntrepreneurs yes that's right! For example to measure performance and story result in a dictionary. We can also try to log it.

  • @cheewan9273
    @cheewan9273 6 лет назад +1

    As a noob I started with virtualenv but then switched to PyCharm Community edition for learning Python, as there were so many different methods of creating virtualenvs that it got a bit confusing as to which I should use.

    • @pha1994
      @pha1994 6 лет назад +1

      Chee Wan Try pipenv a few times. Its worth learning.

    • @cheewan9273
      @cheewan9273 6 лет назад

      Tried this but getting error. When I deactivated the virtualenv and then tried the activate it again using pipenv shell, its says that the virtualenv is already activated

    • @pha1994
      @pha1994 6 лет назад

      Chee Wan After deactivating, type exit. Then you can reactivate again.

    • @cheewan9273
      @cheewan9273 6 лет назад

      ahh ok, it wasn't obvious from the video

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад

      Thanks PJ!

  • @Juan_deep
    @Juan_deep 5 лет назад

    THANK YOU!!! I thought i was going crazy when I didn't see a name for subshell glad too see that PS for some reason doesn't create a subshell

  • @cheewan9273
    @cheewan9273 6 лет назад +5

    So do you create a new venv directory for each project or create them all under the venv virtual folder?

  • @pha1994
    @pha1994 6 лет назад +1

    One thing I should mention. Simply creating a virtual environment using pipenv, it creates it in a folder ending in some hash value which is not known first hand. To be deterministic set PIPENV_VENV_IN_PROJECT=1 in your environment variables before creating the environment. When you create the environment, it will now create your environment in folder named .venv/ . Now you can always be sure where the environment is. Adios.

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад +1

      Thank you! Much appreciated.

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад +1

      Updated the blog post www.codingforentrepreneurs.com/blog/pipenv-virtual-environments-for-python/#bonus-items. I just tested and validated this method. It works well! Thank you.

  • @SekaiT214
    @SekaiT214 5 лет назад

    Great tutorial thanks for taking the time to explain this.

  • @afr-dt
    @afr-dt 6 лет назад

    Great tutorial thanks! 😃

  • @scottufus
    @scottufus 4 года назад

    this is a good starter, but do you have any knowledge with pipenv and teamcity? can't seem to find any good content on it -

  • @adamtak3128
    @adamtak3128 6 лет назад

    What am I doing incorrectly when it comes to nano? I am never able to save and exit any of the changes I try to make. I just keep bouncing back between the ^X and Y/N page. It's extremely frustrating.

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 5 лет назад +1

    When would I use conda as oppose to pipenv?

  • @GrayCo
    @GrayCo 3 года назад

    Golly gee wiz. A 3 year old video featuring a hot python topic having less than 500 views. Do ya think maybe the fact that Windows controls over 90% of the personal computer OS might have something to do with it?

  • @AnkurKumar-ur1cj
    @AnkurKumar-ur1cj 5 лет назад

    After installing Django and running command 'pipenv shell' the virtual envieroment is not running on (try_django) rather its running on Virtualenv location: /home/ankur/.local/share/virtualenvs/ankur-0RdmWIa8. Is it a problem? HELP !!!

  • @mikefromru2341
    @mikefromru2341 5 лет назад

    What is the difference between virtualenv and pipenv ?

  • @humanOSx
    @humanOSx 6 лет назад +1

    Justin, do you know how to use docker & docker-compose for create a dev environment?

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад +1

      Yes. Pipenv is much easier for 95% of beginners. Docker can be a game charger for projects too!

    • @humanOSx
      @humanOSx 6 лет назад

      CodingEntrepreneurs - got it, if you have time, maybe you can do a tutorial about docker for dev env whit django, i'll thank you so much

  • @peterbrown1465
    @peterbrown1465 3 года назад

    zsh: command not found: pipenv (i am getting this error, i have installed pipenv) can someone help?

  • @barbarairena6714
    @barbarairena6714 6 лет назад

    how do I tell my standard py-interpreter in my IDLE that it should look in my virtualenv (created by pipenv) to look for and use the installed packages ( and not using ones I have installed globally )? I guess it must work like the build systems in Sublime, but how do I do it in my standard IDLE included in my Python?? thanx

  • @TechEats
    @TechEats 6 лет назад

    anaconda auto completion is not working...are you able to get it to work?

  • @balogunolajide7204
    @balogunolajide7204 4 года назад

    Can I use this method on Ubuntu 20.04 to create pipenv?

  • @serhii.chumachenko
    @serhii.chumachenko 6 лет назад

    Thanks!

  • @motiejausvaliunoanimacijos3408
    @motiejausvaliunoanimacijos3408 4 года назад

    where did you open that window

  • @somewhatlost6536
    @somewhatlost6536 3 года назад

    Why i have to install django again and again

  • @blackspace7401
    @blackspace7401 4 года назад

    on my pc i can get pipenv to install 3.7 it always install 3.8.5 does anyone run in tho this issue.

  • @noopurp123
    @noopurp123 6 лет назад

    I got an error executing "sudo pip install pipenv". It threw an exception (Operation not permitted)

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад

      Do you have admin privileges?

    • @noopurp123
      @noopurp123 6 лет назад

      CodingEntrepreneurs Yes

    • @noopurp123
      @noopurp123 6 лет назад

      Just to let you know, I was able to install pipenv successfully using "brew install pipenv"

  • @qocu13
    @qocu13 6 лет назад

    I see that shell in windows, even powershell now, still sucks comparing to linux ( or even mac )

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  6 лет назад

      It's a big improvement over command prompt! I'll take that at least :)

  • @AnotherAgnostic
    @AnotherAgnostic 2 года назад

    deactivate doesn't do anything.

  • @wassimmix415
    @wassimmix415 3 года назад

    مرحبا

  • @DanielFenandes
    @DanielFenandes 6 лет назад

    The link kirr.co/m0ejzr is not working

  • @nazeeraharmanza
    @nazeeraharmanza 6 лет назад

    haha error?