It will be my mistake saying that venv (in current state) reaches 300MB, as I pointed out to the space that is left on my disk ... (Which is 300GB anyway, my calculation was wrong there) Originally, the size on the disk of a venv (empty from additional libraries installed) would be around 20MB. As we keep installing libraries, it will get larger. Thanks a lot to @Doug Sigman for mentioning this out. Will you use virtual environments from now on?
I have a quick question im trying to run a program with the virtual environment but i think one library called tabula is trying to seach java in my "machine:"C:\Users\padiaz\Desktop\Actualizaciones\venv\Lib\site-packages\jpype\_jvmfinder.py", line 212, in get_jvm_path raise JVMNotFoundException("No JVM shared library file ({0}) " jpype._jvmfinder.JVMNotFoundException: No JVM shared library file (jvm.dll) found. Try setting up the JAVA_HOME environment variable properly." This is the error im getting, how can i get java into the virtual environment? Thanks a lot.
@@jimshapedcoding The env variables for FlasK_APP, FLASK_DEBUG for example. I expected they would be stored in a file in the venv but can not find them :-)
So we shouldn't put the venv directory on github. However, in this directory there is a file requeirments.txt - how then a person who wants to run this program will know what modules he needs to install?
Hey, first of all thanks for watching the tutorial. Just to clarify - requirements.txt - Should be maintained Venv - Should NOT be maintained Then the other user only has to do the following things: - Use a git clone command - go to project dir - python -m venv venv - venv\Scripts\activate.bat - pip install -r requirements.txt And there you go, you have a project with a virtual env, with all the dependencies installed :)
@@jimshapedcoding You quoted the wrong number from the directory listing at 12:52 in this video. The larger number on the last line, 294,263,066,624, is the number of bytes free on the drive. The number of bytes the VENV folder contains is the lower number on the line above, 19,251,480.
It does, this question is asked in this video somehow similar :) That is my opinion about it: Creating the venv from the IDE is just another alternative and I agree with you :). I was using the Pycharm's auto venv creation as well. Sometimes I prefer to do it from my terminal just because I find it easier. My only concern doing those things from Pycharm would be sudo privileges in Linux OS. That is why the community would not recommend installing packages from Pycharm to your venv for example. So I would prefer doing all the work from the terminal and getting it done.
It will be my mistake saying that venv (in current state) reaches 300MB, as I pointed out to the space that is left on my disk ... (Which is 300GB anyway, my calculation was wrong there)
Originally, the size on the disk of a venv (empty from additional libraries installed) would be around 20MB. As we keep installing libraries, it will get larger.
Thanks a lot to @Doug Sigman for mentioning this out.
Will you use virtual environments from now on?
Oh my god, I was going crazy with my code, so happy I found this!! Thank you :)
Pretty well explained! Thank you so much.
Thanks for another great video. I always learn something in your videos.
Yeah it is so important. Now I know about the virtual environment because of you. Thank you sir ❤️
Thanks Gayashan, feel free to share with more people
Great one Jim
Thanks!
Nice video as always! Do you've any plans on recording videos teaching about Network Programming in Python?
Thanks. Possibly! Do you mean libraries like socket?
JimShapedCoding - Yes, exactly
I have a quick question im trying to run a program with the virtual environment but i think one library called tabula is trying to seach java in my
"machine:"C:\Users\padiaz\Desktop\Actualizaciones\venv\Lib\site-packages\jpype\_jvmfinder.py", line 212, in get_jvm_path
raise JVMNotFoundException("No JVM shared library file ({0}) "
jpype._jvmfinder.JVMNotFoundException: No JVM shared library file (jvm.dll) found. Try setting up the JAVA_HOME environment variable properly."
This is the error im getting, how can i get java into the virtual environment?
Thanks a lot.
Can someone help me i am trying to ignore the venv but it is not ignoring
Good video Jim. How many years you are using Python? I would like to know where the 2 environment variables are stored, could not find them... Thx
Almost 3 years, using it very intensively for learning purposes for my channel and as well as in my job.
And what env variables you mean ?
@@jimshapedcoding The env variables for FlasK_APP, FLASK_DEBUG for example. I expected they would be stored in a file in the venv but can not find them :-)
thank you, very usful
So we shouldn't put the venv directory on github. However, in this directory there is a file requeirments.txt - how then a person who wants to run this program will know what modules he needs to install?
Hey, first of all thanks for watching the tutorial.
Just to clarify - requirements.txt - Should be maintained
Venv - Should NOT be maintained
Then the other user only has to do the following things:
- Use a git clone command
- go to project dir
- python -m venv venv
- venv\Scripts\activate.bat
- pip install -r requirements.txt
And there you go, you have a project with a virtual env, with all the dependencies installed :)
@@jimshapedcoding You quoted the wrong number from the directory listing at 12:52 in this video. The larger number on the last line, 294,263,066,624, is the number of bytes free on the drive. The number of bytes the VENV folder contains is the lower number on the line above, 19,251,480.
Thanks Doug, I was totally confused reading the lines properly while recording, pinned this as a comment :)
What is the reason you create the venv yourself in Pycharm? Pycharm automatically creates one for every new project no?
It does, this question is asked in this video somehow similar :) That is my opinion about it:
Creating the venv from the IDE is just another alternative and I agree with you :). I was using the Pycharm's auto venv creation as well. Sometimes I prefer to do it from my terminal just because I find it easier.
My only concern doing those things from Pycharm would be sudo privileges in Linux OS. That is why the community would not recommend installing packages from Pycharm to your venv for example. So I would prefer doing all the work from the terminal and getting it done.
Now understand importance of venv
Wonderful!
thanks