Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottHarris17 committed Jul 30, 2024
1 parent ee70ca4 commit c16ae74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ <h2 id="installationAnchor">Installation</h2>

<li><u>Download Python 3, Create an Environment, and Install Psychopy:</u> There are two options for downloading python if you do not already have it.
<ol>
<li><em>Create a conda environment (recommended):</em> Download <a href="https://www.anaconda.com/download" target="_blank">anaconda</a> or <a href="https://docs.anaconda.com/miniconda/" target="_blank">miniconda</a>. Launch the terminal (on windows, you must use "Anaconda Prompt") and create a new conda environment called "Bassoon" by typing <code>conda create -n Bassoon python=3.10</code>. Once the environment is created, activate it using <code>conda activate Bassoon</code> and install psychopy by entering <code>pip install psychopy</code> (note that the there used to be a conda distribution for Psychopy, but it is no longer up to date). If you run into trouble, look through the <a href="https://www.psychopy.org/download.html" target="_blank">Psychopy documentation</a>.</li>
<li><em>Create a conda environment (recommended):</em> Download <a href="https://www.anaconda.com/download" target="_blank">anaconda</a> or <a href="https://docs.anaconda.com/miniconda/" target="_blank">miniconda</a>. Launch the terminal (on windows, you must use "Anaconda Prompt") and create a new conda environment called "Bassoon" by typing <code>conda create -n Bassoon python=3.10</code>. Once the environment is created, activate it using <code>conda activate Bassoon</code> and install psychopy by entering <code>pip install psychopy</code> (note that there used to be a conda distribution for Psychopy, but it is no longer up to date). If you run into trouble, look through the <a href="https://www.psychopy.org/download.html" target="_blank">Psychopy documentation</a>.</li>
<li><em>Install python/psychopy outside of conda:</em> If you would prefer to install python/psychopy in a different way, you may. Regular Venvs should work along with pip installs. Be sure to use <a href="https://www.python.org/downloads/" target = "_blank">python 3</a> and to pay close attention to the <a href="https://www.psychopy.org/download.html" target="_blank">psychopy documentation</a>.</li>
</ol>
<li><u>Install Additional Dependencies:</u> Other packages that are needed are tkinter and pyserial. Install them into your conda or virtual environment by running <code>pip install tk</code> and <code>pip install pyserial</code>. Make sure that your conda or virtual environment is activated before pip installing (typically, this is indicated by the name of the environment being listed in parentheses in your terminal/anaconda prompt. For instnace, <code style="background-color: #000000; color:#fcfcfc">(base) C:\Users\mrsco></code> indicates that the base environment is active). </li>
Expand All @@ -215,7 +215,7 @@ <h5 id="commonProblemsAnchor">Common Problems</h5>
<li><code>pip install tk=8</code></li>
<li><code>pip install pyserial=3.5</code></li>
</ul>
<li><em>Dukpy Error:</em> Some users have encountered a problem installing the Dukpy package when running <em>pip install psychopy</em>. Typically the error reads something like <code style="background-color: #000000; color:#fcfcfc"><span style="color: #b92b64;">ERROR: </span>Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"</code>. The solution is to download and install <a href="https://visualstudio.microsoft.com/" target="_blank">Visual Studio</a> from Microsoft, making sure to select the C++ packages during the installation process. Sometimes a link to dowload the software is also reported with the error message, which works equally well. Once you've installed Visual Studion, try rerunning <code>pip install psychopy</code>.</li>
<li><em>Dukpy Error:</em> Some users have encountered a problem installing the Dukpy package when running <em>pip install psychopy</em>. Typically the error reads something like <code style="background-color: #000000; color:#fcfcfc"><span style="color: #b92b64;">ERROR: </span>Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"</code>. The solution is to download and install <a href="https://visualstudio.microsoft.com/" target="_blank">Visual Studio</a> from Microsoft, making sure to select the C++ packages during the installation process. Sometimes a link to dowload the software is also reported with the error message, which works equally well. Once you've installed Visual Studio, try rerunning <code>pip install psychopy</code>.</li>
</ul></p>
<p><b>General Advice for Python Beginners:</b> If you're new to programming, one of the most tempting things to do when you encounter a new or unknown error is to give up and ask for help. However, a closely kept secret is that even for experienced programmers, almost every error is a new error! I strongly encourage you to try to debug errors and problems yourself (at least for a bit). It's by far the best way to learn and build confidence. The biggest tips I can provide are to <em><u>read the error messages and terminal outputs, look through the code (especially if an error message points you to a particular line), experiment, and USE GOOGLE!</u></em> There's a 99% chance that the solution is documented somewhere online - Stack Overflow, Reddit, and even ChatGPT are great starting points. If you really can't figure something out, then ask for help - but don't be surprised if the "expert" you turn to just as quickly goes to Google to find the answer.</p>

Expand Down

0 comments on commit c16ae74

Please sign in to comment.