%23 Description of problem Leave a comment...
BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN
%23 Configuration
VSCode: 1.37.0-insider PIO IDE: v1.8.0 System: Darwin, 18.6.0, x64
%23 Exception
Error: Could not create PIO Core Virtual Environment. Please create it manually -> http://bit.ly/pio-core-virtualenv
Error: Virtualenv Create: /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/__init__.py:15: UserWarning: The virtualenv distutils package at %s appears to be in the same location as the system distutils%3F
warnings.warn("The virtualenv distutils package at %s appears to be in the same location as the system distutils%3F")
Traceback (most recent call last):
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 2462, in <module>
main()
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 762, in main
symlink=options.symlink,
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 998, in create_environment
install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 1198, in install_python
fix_lib64(lib_dir, symlink)
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 1620, in fix_lib64
if not [p for p in distutils.sysconfig.get_config_vars().values() if isinstance(p, basestring) and "lib64" in p]:
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/__init__.py", line 105, in sysconfig_get_config_vars
real_vars = old_get_config_vars(*args)
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/sysconfig.py", line 511, in get_config_vars
srcdir = os.path.dirname(get_makefile_filename())
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/sysconfig.py", line 258, in get_makefile_filename
lib_dir = get_python_lib(plat_specific=0, standard_lib=1)
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/__init__.py", line 94, in sysconfig_get_python_lib
prefix = sys.real_prefix
AttributeError: module 'sys' has no attribute 'real_prefix'
Using base prefix '/usr/local/bin/../Cellar/python/3.7.4/bin/../Frameworks/Python.framework/Versions/3.7'
at t.value (/Users/I831533/.vscode-insiders/extensions/platformio.platformio-ide-1.8.0/node_modules/platformio-node-helpers/dist/webpack:/platformio-node-helpers/src/installer/stages/platformio-core.js:271:21)
Python 3 has built in virtual env.
Good to know! I had no idea! Thanks!