Reputation: 17647
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$
Upvotes: 3
Views: 1152
Reputation: 17647
I solved with python3 -m venv <myenvname>
as explained Use different Python version with virtualenv
Upvotes: 4