# Mac and Linux¶

OpenSoundscape can be installed on Mac and Linux machines with Python 3.7 (or 3.8) using the pip command pip install opensoundscape==0.6.2. We recommend installing OpenSoundscape in a virtual environment to prevent dependency conflicts.

Below are instructions for installation with two package managers:

• conda: Python and package management through Anaconda, a package manager popular among scientific programmers
• venv: Python’s included virtual environment manager, venv

Feel free to use another virtual environment manager (e.g. virtualenvwrapper) if desired.

## Installation via Anaconda¶

• Install Anaconda if you don’t already have it.
• Create a Python 3.7 (or 3.8) conda environment for opensoundscape: conda create --name opensoundscape pip python=3.7
• Activate the environment: conda activate opensoundscape
• Install opensoundscape using pip: pip install opensoundscape==0.6.2
• Deactivate the environment when you’re done using it: conda deactivate

## Installation via venv¶

Download Python 3.7 (or 3.8) from this website.

Run the following commands in your bash terminal:

• Check that you have installed Python 3.7 (or 3.8)._: python3 --version
• Change directories to where you wish to store the environment: cd [path for environments folder]
• Tip: You can use this folder to store virtual environments for other projects as well, so put it somewhere that makes sense for you, e.g. in your home directory.
• Make a directory for virtual environments and cd into it: mkdir .venv && cd .venv
• Create an environment called opensoundscape in the directory: python3 -m venv opensoundscape
• Activate/use the environment: source opensoundscape/bin/activate
• Install OpenSoundscape in the environment: pip install opensoundscape==0.6.2
• Once you are done with OpenSoundscape, deactivate the environment: deactivate
• To use the environment again, you will have to refer to absolute path of the virtual environments folder. For instance, if I were on a Mac and created .venv inside a directory /Users/MyFiles/Code I would activate the virtual environment using: source /Users/MyFiles/Code/.venv/opensoundscape/bin/activate

For some of our functions, you will need a version of ffmpeg >= 0.4.1. On Mac machines, ffmpeg can be installed via brew.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.3947325050830841, "perplexity": 14177.766088073176}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-21/segments/1652662539049.32/warc/CC-MAIN-20220521080921-20220521110921-00553.warc.gz"}