Python Forum
Offline audio to text (Speech Recognition)
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Offline audio to text (Speech Recognition)
#13
(Jan-16-2018, 11:14 AM)jehoshua Wrote: Have been reading up on how to use the virtual environment with Python 3.6 and python3-venv , and it seems after the initial command
it's just source bin/activate after you have cd into environment folder.
The deactivate to get out.
Example:
# before location 
mint@mint ~ $ which python
/home/mint/.pyenv/shims/python
mint@mint ~ $ python -V
Python 3.6.2

# Make environment and cd in
mint@mint ~ $ python -m venv foo_env
mint@mint ~ $ cd foo_env

# Activate
mint@mint ~/foo_env $ source bin/activate

# Python and pip from environment is used
(foo_env) mint@mint ~/foo_env $ which python
/home/mint/foo_env/bin/python
(foo_env) mint@mint ~/foo_env $ pip -V
pip 9.0.1 from /home/mint/foo_env/lib/python3.6/site-packages (python 3.6)

# Deactivate
(foo_env) mint@mint ~/foo_env $ deactivate
mint@mint ~/foo_env $ 
Reply


Messages In This Thread
RE: Offline audio to text (Speech Recognition) - by snippsat - Jan-16-2018, 12:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  installing anaconda packages offline HulkHogansArmsArePythons 4 7,408 Feb-18-2020, 08:23 PM
Last Post: jefsummers
  CNN Speech Classification Mitchie87 0 1,621 Dec-06-2019, 06:17 PM
Last Post: Mitchie87
  Tensorflow offline build from source on CentOS 7 riotto 3 4,051 Mar-21-2019, 07:16 PM
Last Post: riotto
  [Plot a stacked bar graph using plotly offline mode] niks250891 1 5,225 Apr-22-2018, 02:11 PM
Last Post: niks250891
  AttributeError: module 'plotly' has no attribute 'offline' charlesczc 8 17,179 Jan-21-2018, 08:34 AM
Last Post: buran

Forum Jump:

User Panel Messages

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