[xxxx@gs-server-7214 ~]$ /opt/anaconda3/bin/jupyter notebook
-bash: /opt/anaconda3/bin/jupyter: /opt/anaconda3/bin/python: Bad interpreter: No that file or directory
[xxxx@gs-server-7214 ~]$ /opt/anaconda3/bin/python3
Python 3.6.10 |Anaconda, Inc.| (default, May 8 2020, 02:54:21)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[1]+ Stop /opt/anaconda3/bin/python3
-
- create a soft connection
-
- Jupiter has been installed through
/opt/anaconda3/bin/python3 - M PIP install Jupiter
-
- , and python can also be started under the full path, but the error is reported as above when starting Jupiter under the full path. The reason is that the default interpreter path of anaconda is/opt/anaconda3/bin/python, but there is no such file, Create a soft connection Python to point to the actual interpreter Python 3.6, as follows
- & gt</ Code> indicates soft connection </ OL>
[xxxx@gs-server-7214 bin]$ ll |grep python
-rwxrwxr-x 1 root root 237 10月 24 2019 ipython
-rwxrwxr-x 1 root root 237 10月 24 2019 ipython3
lrwxrwxrwx 1 root root 9 7月 16 16:31 python -> python3.6
lrwxrwxrwx 1 root root 9 8月 28 2020 python3 -> python3.6
-rwxrwxr-x 1 root root 11947112 5月 8 2020 python3.6
lrwxrwxrwx 1 root root 17 8月 28 2020 python3.6-config -> python3.6m-config
lrwxrwxrwx 1 root root 9 8月 28 2020 python3.6m -> python3.6
-rwxrwxr-x 1 root root 3477 8月 28 2020 python3.6m-config
lrwxrwxrwx 1 root root 17 8月 28 2020 python3-config -> python3.6m-config
2. Set the environment variable
and modify the . Bash in your user directory_ Profile
file, add environment variable, export path =/opt/anaconda3/bin: $path
, colon is separatorsource .bash_ Profile
makes the environment variable effective, so you can start jupyter by directly entering jupyter notebook
in your user directory.
Read More:
- Python FileNotFoundError: [Errno 2] No such file or directory: ‘objects/epsilon.pkl
- [Solved] Python project runs the open() function error: FileNotFoundError: [Errno 2] No such file or directory
- The solution of no such file or directory and cannot load native module running error of python3 pyinstaller after packaging
- ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
- [Solved] Import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- PIP Install Mysqlclient error C1083: Cannot open include file: ‘mysql.h‘: No such file or directory
- OSError libespeak.so.1 error: no such file or directory [How to Solve]
- [Solved] ROS fatal error: NvInferRuntimeCommon. h: No such file or directory
- fatal error: cublas_v2.h: No such file or directory [How to Solve]
- cffi Security Report “c / _cffi_backend.oc / _cffi_backend.c: 15:17: error: ffi.h: No such file or directory” Problem
- [Solved] Error: Please select a valid Python interpreter
- [Solved] Windows Configurate Python Environment error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft
- [Solved] Mac ffmpeg Install Error: filenotfounderror: [errno 2] no such file or directory: ‘ffmpeg’: ‘ffmpeg’
- Raspberry pie compilation and installation opencv error: fatal error: bootdesc_bgm.i: No such file or directory
- [Solved] Error occurred when finalizing GeneratorDataset iterator: Failed precondition: Python interpreter st
- Python: How to Delete Empty Files or Folders in the Directory
- Python recursively traverses all files in the directory to find the specified file
- [Solved] VScode Configurate Python Interpreter Error: D:\Pros\virtuals\venvs\Scripts\Activate.ps1 cannot be loaded
- Tensorflow import Error: ImportError: libcuda.so.1: cannot open shared object file: No such file or dire
- Jupyter notebook Failed to Switch to the Virual Environment: DLL load failed python.exe could not find the entry