Closed
Description
Installing and running on a Mac or other environment with multiple Pyhton environments where pip
refers to a Pyhton 2.7 environment and pip3
is used to reference the Python 3 environment, running the visualpy install
command fails due to hard-wired dependence on pip
:
############ cat /usr/local/bin/visualpy ###############
#============================================================================
#!/bin/sh
#============================================================================
# Filename : visualpy
# function : control visualpython for Mac/Linux
# Creator : BlackLogic - LJ
# version : 2.1
# License :
# Date : 2020 07.27
# Mdate : 2020 12.29
#============================================================================
v_path1=`pip show visualpython | grep Location | awk -F': ' '{print $2}'`
v_prod='visualpython'
v_str1='jupyter nbextension'
v_str2='visualpython/src/main'
v_unst='pip uninstall '${v_prod}
v_upgr='pip install '${v_prod}' --upgrade'
#v_srch='pip search '${v_prod}
v_str3='pip list -o '
v_str4='pip show '${v_prod}