title: Error: Environment /Users/myuser/.virtualenvs/iron does not contain activation script
body: <p>I am running python 3.7.6 on macOS Catalina version 10.15.1 and I am trying to install and set up <code>virtualenvwrapper</code> which I have installed with <code>pip3 install virtualenvwrapper</code>.</p>
  
  <p>I have the following lines in my .bash_profile:</p>
  
  <pre><code>export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
  export VIRTUALENVWRAPPER_VIRTUALENV=/Users/maxcarey/Library/Python/3.7/bin/virtualenv
  export WORKON_HOME=$HOME/.virtualenvs 
  source /Users/maxcarey/Library/Python/3.7/bin/virtualenvwrapper.sh
  </code></pre>
  
  <p>These are configuration steps I have followed from:
  <a href="https://stackoverflow.com/a/42643313/5420796">https://stackoverflow.com/a/42643313/5420796</a>. As well as other tutorials (<a href="https://realpython.com/python-virtual-environments-a-primer/" rel="noreferrer">like this one</a>)</p>
  
  <p>So you can see I'm attemping to point these export variables to the right place, in my terminal, the output of <code>which python3</code> is <code>/usr/local/bin/python3</code>
  The output of <code>which virtualenv</code> is: /Users/maxcarey/Library/Python/3.7/bin/virtualenv.
  The output of <code>which virtualenvwrapper.sh</code> is <code>/Users/maxcarey/Library/Python/3.7/bin/virtualenvwrapper.sh</code></p>
  
  <p>Here is the problem: when I run: <code>mkvirtualenv iron</code>  to create a new virtual environment (called iron in this case), the output of the command is:</p>
  
  <p>created virtual environment in 193ms CPython3Posix(dest=/Users/maxcarey/.virtualenvs/iron, clear=False, global=False) with seeder FromAppData pip=latest setuptools=latest wheel=latest app_data_dir=/Users/maxcarey/Library/Application Support/virtualenv/seed-v1 via=copy
  virtualenvwrapper.user_scripts creating /Users/maxcarey/.virtualenvs/iron/bin/predeactivate
  ERROR: Environment '/Users/maxcarey/.virtualenvs/iron' does not contain an activate script.</p>
  
  <p>You can see that a virtual environment is indeed created, however, I get an error saying there is no activation script. However, when I navigate to <code>~/.virtualenvs</code>, I can indeed see the activation scripts. Here is the output of <code>tree</code> inside the new folder <code>iron/local/</code>:</p>
  
  <pre><code>└── local
      └── bin
          ├── activate
          ├── activate.csh
          ├── activate.fish
          ├── activate.ps1
          ├── activate.xsh
          ├── activate_this.py
          ├── easy_install
          ├── easy_install-3.7
          ├── easy_install3
          ├── pip
          ├── pip-3.7
          ├── pip3
          ├── python -&gt; /Library/Developer/CommandLineTools/usr/bin/python3
          ├── python3 -&gt; python
          ├── python3.7 -&gt; python
          ├── wheel
          ├── wheel-3.7
          └── wheel3
  
  </code></pre>
  
  <p>It does indeed appear that there are activation scripts. So I am stumped about why I get the activation script error (which I also get when running <code>workon iron</code>). I have tried simply destroying and recreating the virtual environment with <code>rmvirtualenv iron</code>, which works, however, when creating the environment again I still get the same error. Thank You</p>