Install Python with NumPy SciPy Matplotlib on macOS Catalina

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

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

  • @charlesgiard-gautier4923
    @charlesgiard-gautier4923 3 года назад +6

    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

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

    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?

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

    How do i put the idle icon on my desktop with all the modules please ?

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

    plt.show() not working please help

  • @aliyusuf958
    @aliyusuf958 4 года назад +2

    hey mine comes up with this error
    Traceback (most recent call last):
    File "", line 1, in
    python
    NameError: name 'python' is not defined

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

      me too, I can't resolve it, :((

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

      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?

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

    Thanks so much.I had no idea the a environment was available and easy to establish.

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

    Awesome video! Thank you sooo much.

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

    very helpful! i followed your steps and succesfully installed NumPy SciPy and matplotlib. My system is Mojave

  • @sarathkumarsontam
    @sarathkumarsontam 5 лет назад +2

    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.

    • @AtoZProgrammingTutorials
      @AtoZProgrammingTutorials  5 лет назад +2

      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.

    • @sarathkumarsontam
      @sarathkumarsontam 5 лет назад +1

      @@AtoZProgrammingTutorials Thank you

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

      @@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!

    • @AtoZProgrammingTutorials
      @AtoZProgrammingTutorials  5 лет назад +2

      @@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.

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

      @@AtoZProgrammingTutorials you are a King !!!! after several hours on the web,.... thanks. any idea why it is necessary to start IDLE from Terminal also ??

  • @gmcenroe
    @gmcenroe 4 года назад +1

    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

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

      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.

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

      @@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

  • @husamal-hraishawi4783
    @husamal-hraishawi4783 4 года назад +1

    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

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

      You should be able to create multiple figure/graphics in separate windows at the same time. Also, check subplots.

  • @gagancapricorn
    @gagancapricorn 5 лет назад +1

    Thank you. Really helpful video. Are there any certifications available from some reputable organizations for Python Data Science ?

  • @liyanafaiza5511
    @liyanafaiza5511 4 года назад +1

    thank you so much, Sir!!! you are really helping me to solve my problem 🙏🏻

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

    but how do you get the idle ?

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

      Once the environment is activated, use:
      python -m idlelib.idle

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

      @@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 !!!!

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

    It took like twenty play throughs but I think I got it!

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

    I always get this error when im trying to install spicy on my Mac , I don't know why , I followed every step carefully

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

      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.

    • @AliA-kr9xm
      @AliA-kr9xm 3 года назад

      @@AtoZProgrammingTutorials that's not working

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

    I always get a 517 PEP error while I am trying to install numpy!

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

      Do you use one of the new Macs with the M1 processors ? Or is it an Intel based Mac with macOS Big Sur ?

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

      @@AtoZProgrammingTutorials it is new mac with M1 processor.

    • @AtoZProgrammingTutorials
      @AtoZProgrammingTutorials  4 года назад +1

      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.

    • @seyedrezaghazanfari7890
      @seyedrezaghazanfari7890 4 года назад +1

      @@AtoZProgrammingTutorialsI really appreciate the reply, however I still have the same problem even though I applied arch command first.
      Thanks again.

    • @AtoZProgrammingTutorials
      @AtoZProgrammingTutorials  4 года назад +1

      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.

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

    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

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

    Very helpful!!

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

    the best!!

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

    You are a genius!

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

    Thanks.....

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

    It always put me «
    -bash : syntax error near unexpected token ˋpython3.9’ »
    I don’t know what to do ...