2:55 I used "bash" for activating my environment because it did not work the way you showed. The steps would be: 1. Open your terminal 2. Write "python3 -m venv work" and press enter 3. Write: "bash" and press enter 4. Write: "source work/bin/activate" and press enter I don't understand it but now you should be in the work environment
I use a MacOS Catalina, and I followed what you presented here and can now run a Python 3 code written by a colleague. Thank you! However, a directory named "work" was created on my Desktop. What can I do with this directory? Can I move it somewhere else?
I had that problem at first too, but I accidentally pressed enter instead of the tab key. It did work when I pressed the tab key tho. Maybe you made the same mistake?
I know, sorry about that. I think I've mentioned in the video twice that for now you need to use Python 3.7. There are some problems with the official builds for SciPy and Matplotlib and there are no packages for 3.8 (at least for now). I will add a note in the video description when it is safe to use 3.8.
@@AtoZProgrammingTutorials Installed 3.7.4 and installed matplotlib. I'm trying to run my code from IDLE. It's showing ModuleNotFoundError. when running my code from terminal it's working perfectly!
@@sarathkumarsontam Try to start IDLE from the Terminal also, use "python -m idlelib.idle" after the environment is activated. If you start IDLE normally it won't take into account the virtual environment setup this is why you get the module not found error.
@@AtoZProgrammingTutorials you are a King !!!! after several hours on the web,.... thanks. any idea why it is necessary to start IDLE from Terminal also ??
SCIPY did not install, mac os complained no fortran compiler building 'mach' library error: library mach has Fortran sources but no Fortran compiler found ---------------------------------------- ERROR: Failed building wheel for scipy Failed to build scipy Lots of errors with matplotlib as well, did not install
Are you trying to use Python 3.9 ? If this is the case, at this time there is no compiled version of SciPy for it and it will try to build it from scratch which is a complex process. I suggest to try again with latest 3.8 and wait until SciPy officially supports Python 3.9.
@@AtoZProgrammingTutorials Thanks in order to install an earlier version of python I installed Anaconda that has all of the packages and this worked without any problems, I think it was version 3.8 thanks
Thanks for such nice Video, I have a question though, try to make graph with my list before and after sorting by using the number and index for X and Y-axis thanks again
What version of Python have you installed ? Python 3.9 doesn't work for now because most third party libraries don't support v3.9. Try again with Python 3.8.
That's the problem! Currently NumPy can't be compiled on Apple Silicon. As a temporary solution, you need to switch to use x86-64 instructions instead of the default arm64. You can do this by opening a Terminal and writing: arch -x86_64 zsh after, in the same Terminal tab you can follow my video and it should work. I will record a new video about installing NumPy, SciPy and Matplotlib on Apple Silicon in a few days. So, if you have problems with the above workaround, check my channel in the next few days.
Strange, I installed yesterday NumPy, SciPy and Pandas on an M1 MacBook Pro without any problems (after switching the Terminal to x86-64). If you want I will send you a message once the new video is up, or you can subscribe and you should see the new video in your notifications.
2:55 I used "bash" for activating my environment because it did not work the way you showed. The steps would be:
1. Open your terminal
2. Write "python3 -m venv work" and press enter
3. Write: "bash" and press enter
4. Write: "source work/bin/activate" and press enter
I don't understand it but now you should be in the work environment
I use a MacOS Catalina, and I followed what you presented here and can now run a Python 3 code written by a colleague. Thank you! However, a directory named "work" was created on my Desktop. What can I do with this directory? Can I move it somewhere else?
How do i put the idle icon on my desktop with all the modules please ?
plt.show() not working please help
hey mine comes up with this error
Traceback (most recent call last):
File "", line 1, in
python
NameError: name 'python' is not defined
me too, I can't resolve it, :((
I had that problem at first too, but I accidentally pressed enter instead of the tab key. It did work when I pressed the tab key tho. Maybe you made the same mistake?
Thanks so much.I had no idea the a environment was available and easy to establish.
Awesome video! Thank you sooo much.
very helpful! i followed your steps and succesfully installed NumPy SciPy and matplotlib. My system is Mojave
Nice work!
I've python 3.8.
not able to install either SciPy and Matplotlib.
ERROR: Command errored out with exit status - This is the error I'm resulting in.
I know, sorry about that. I think I've mentioned in the video twice that for now you need to use Python 3.7. There are some problems with the official builds for SciPy and Matplotlib and there are no packages for 3.8 (at least for now). I will add a note in the video description when it is safe to use 3.8.
@@AtoZProgrammingTutorials Thank you
@@AtoZProgrammingTutorials Installed 3.7.4 and installed matplotlib.
I'm trying to run my code from IDLE. It's showing ModuleNotFoundError.
when running my code from terminal it's working perfectly!
@@sarathkumarsontam Try to start IDLE from the Terminal also, use "python -m idlelib.idle" after the environment is activated.
If you start IDLE normally it won't take into account the virtual environment setup this is why you get the module not found error.
@@AtoZProgrammingTutorials you are a King !!!! after several hours on the web,.... thanks. any idea why it is necessary to start IDLE from Terminal also ??
SCIPY did not install, mac os complained no fortran compiler building 'mach' library
error: library mach has Fortran sources but no Fortran compiler found
----------------------------------------
ERROR: Failed building wheel for scipy
Failed to build scipy
Lots of errors with matplotlib as well, did not install
Are you trying to use Python 3.9 ? If this is the case, at this time there is no compiled version of SciPy for it and it will try to build it from scratch which is a complex process. I suggest to try again with latest 3.8 and wait until SciPy officially supports Python 3.9.
@@AtoZProgrammingTutorials Thanks in order to install an earlier version of python I installed Anaconda that has all of the packages and this worked without any problems, I think it was version 3.8 thanks
Thanks for such nice Video, I have a question though, try to make graph with my list before and after sorting by using the number and index for X and Y-axis thanks again
You should be able to create multiple figure/graphics in separate windows at the same time. Also, check subplots.
Thank you. Really helpful video. Are there any certifications available from some reputable organizations for Python Data Science ?
Sorry, I don't know of any certification that I can recommend.
thank you so much, Sir!!! you are really helping me to solve my problem 🙏🏻
Happy to help
but how do you get the idle ?
Once the environment is activated, use:
python -m idlelib.idle
@@AtoZProgrammingTutorials omg thank you for such a quick response it's taken me so long, thank you so much for your help you're a king !!!!
It took like twenty play throughs but I think I got it!
I always get this error when im trying to install spicy on my Mac , I don't know why , I followed every step carefully
What version of Python have you installed ? Python 3.9 doesn't work for now because most third party libraries don't support v3.9. Try again with Python 3.8.
@@AtoZProgrammingTutorials that's not working
I always get a 517 PEP error while I am trying to install numpy!
Do you use one of the new Macs with the M1 processors ? Or is it an Intel based Mac with macOS Big Sur ?
@@AtoZProgrammingTutorials it is new mac with M1 processor.
That's the problem! Currently NumPy can't be compiled on Apple Silicon. As a temporary solution, you need to switch to use x86-64 instructions instead of the default arm64. You can do this by opening a Terminal and writing:
arch -x86_64 zsh
after, in the same Terminal tab you can follow my video and it should work.
I will record a new video about installing NumPy, SciPy and Matplotlib on Apple Silicon in a few days. So, if you have problems with the above workaround, check my channel in the next few days.
@@AtoZProgrammingTutorialsI really appreciate the reply, however I still have the same problem even though I applied arch command first.
Thanks again.
Strange, I installed yesterday NumPy, SciPy and Pandas on an M1 MacBook Pro without any problems (after switching the Terminal to x86-64). If you want I will send you a message once the new video is up, or you can subscribe and you should see the new video in your notifications.
i have but i am getting error:
saurabhsharma@MacBook-Air ~ % source work/bin/activite
source: no such file or directory: work/bin/activite
please help
Very helpful!!
the best!!
You are a genius!
Thanks.....
It always put me «
-bash : syntax error near unexpected token ˋpython3.9’ »
I don’t know what to do ...