Retro Eye care Haitian Deep Dark Default
Logo
FAQ

FAQ #

  1. How to configure Python environment variables?

When installing Python, you need to configure Python’s bin directory into the PATH environment variable. This allows you to install the SphereEx-Boot tool using the pip in the installed Python.

For example: export PATH=/usr/local/python3/bin:$PATH is appended to end of ~/.bashrc file. Executing source ~/.bashrc validates the environment variable.

  1. How to view dependent software versions?
  • Run the command sshpass -V to view the sshpass version.
[root@centos71 ~]# sshpass -V
sshpass 1.06
  • Run the command python -V to view the Python version.
[root@centos71 ~]# python -V
Python 3.6.8
  • Run the command pip --version to view the pip version.
[root@centos71 ~]# pip --version
pip 21.3.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
  • If the pip version is outdated, you can use the command pip install --upgrade pip to upgrade pip. If the upgrade is unsuccessful, please reinstall pip.
  1. How to install pip package?
  • Python3 environment install pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

or

python3 get-pip.py
  • Python2 environment install pip
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
  1. How to configure SSH mutual trust?

Set secret key for passwordless login (if you have set secret key passwordless login, you can skip the following steps)

a.Generate secret key (If id_rsa.pub saved in ~/.ssh/ directory, you can skip this step.)

$ ssh-keygen -t rsa

b.Set intercommunications using the command ssh-copy-id -i ~/.ssh/id_rsa.pub <user>@<host-ip>.

$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@127.0.0.1
  1. What should you do if pip installation fails and prompts message “No module named setuptools”?

You need to install setuptools and then install pip. In spex-offline offline installation package already contains setuptools source code installtion package. Execute the following command to install.

$ cd spex-offline
$ tar -zxvf setuptools-x.x.x.tar.gz
$ cd setuptools-x.x.x
$ python setup.py install