Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Version on Mac OSX
#1
I am running python 3.7.10 on OSX. I am trying to use speech recognition but that requires PyAudio. After about an hour of searching and failing, most sites said PyAudio wasn't compadible with Python 3.7 or above so I tried to uninstall and reinstall python on a different version. However I've tried deleting every individual file and running rm in terminal but if I type python --version into the command prompt the reply is still Verison 3.7.10. I am trying to install version 3.6.8...Can anyone help?
Reply
#2
In order to learn what Python versions do you have on your machine type python in terminal and hit TAB. You will see list of versions and configurations.

I believe that virtual environments are solution for this kind of problems. You know, in near future you might need insertion-ordered dictionaries and therefore Python 3.7 but you don't want to break your PyAdio setup. There is built-in venv module and several third party modules like pipenv. You just set up virtual environment with 'right' Python version with needed modules and dependencies
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply
#3
Thanks, perfringo. Sorry, I'm new to this. How would I go about setting up a Virtual environment with a different Python version. I've given it a go but I can understand the documentation very well.
Reply
#4
There is quite straightforward tutorial on Python site: Creating virtual environments.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply
#5
this is the best solution
Reply
#6
Thank you for the quick replies perfringo. This is exactly what I wanted!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  run part of a script with a different version of Python jdog 2 394 Jan-09-2024, 08:49 PM
Last Post: jdog
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 680 Oct-04-2023, 10:01 AM
Last Post: snippsat
  How to resolve version conflicts in Python? taeefnajib 0 873 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Python venv and PIP version issue JanOlvegg 2 1,199 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Python Version upgrade nitinkukreja 1 854 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Can't update new python version on Pycharm GOKUUUU 6 3,706 Jul-23-2022, 09:24 PM
Last Post: GOKUUUU
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,258 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Python keeps running the old version of the code quest 2 3,645 Jan-20-2022, 07:34 AM
Last Post: ThiefOfTime
  db migration(db version control) for python lubaz 2 2,699 May-30-2021, 01:36 PM
Last Post: lubaz
  Error on Python Version? ErnestTBass 6 3,421 Dec-09-2020, 04:02 PM
Last Post: ErnestTBass

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020