3

I'm trying to create a new virtual environment in OSX. This is what I have tried:

lucas-MacBook-Pro:MyApps lucapuggini$ which python3
/usr/local/bin/python3
lucas-MacBook-Pro:MyApps lucapuggini$ virtualenv -p /usr/local/bin/python3 python_3_6_scipy_dev
-bash: /usr/local/bin/virtualenv: /usr/local/opt/python3/bin/python3.5: bad interpreter: No such file or directory




lucas-MacBook-Pro:~ lucapuggini$ brew install python3.5
Error: No available formula with the name "python3.5" 
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
lucas-MacBook-Pro:~ lucapuggini$ 
Donbeo
  • 17,067
  • 37
  • 114
  • 188
  • Looks like you may need to install python 3.5 – Keith M Jun 12 '17 at 21:03
  • You can't install it because it looks like it's not in brew's repositories. See https://stackoverflow.com/a/33665924/3980985 for installation instructions – Keith M Jun 12 '17 at 21:31
  • I think you might have a version of venv for python 3.5, check that you have the right venv version for your python version – Keith M Jun 12 '17 at 21:46
  • Since you have almost 3k rep you should know this but, Stackoverflow is not for helping you install software, it is for solving specific errors. It is now up to you to do searches and figure out how to determine if you have the right version of venv. – Keith M Jun 12 '17 at 23:14
  • all the above comments can be removed as irrelevant – Donbeo Jun 12 '17 at 23:22

1 Answers1

4

I solved with python3 -m venv <myenvname> as explained Use different Python version with virtualenv

Donbeo
  • 17,067
  • 37
  • 114
  • 188