软件
安装桌面图标的问题
登录密码
root的密码为:19980719
按照如下的链接进行配置:
https://blog.csdn.net/zhangmingfie/article/details/131102331?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-3-131102331-blog-123451471.235%5Ev38%5Epc_relevant_sort_base2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-3-131102331-blog-123451471.235%5Ev38%5Epc_relevant_sort_base2&utm_relevant_index=6
python开发环境
pyenv
查看可安装版本
pyenv install --list
解决办法:
https://blog.csdn.net/BigData_Mining/article/details/100100375
但是还是解决不了下载python3.6.10的问题,仍然出现如下错误:
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/select.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_md5.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sysconfigdata_m_linux_x86_64-linux-gnu.py to 644
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_curses_panel.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_socket.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/resource.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_multibytecodec.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/xxlimited.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sha1.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/fcntl.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_struct.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/termios.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_json.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_heapq.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/array.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_asyncio.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_curses.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sqlite3.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_multiprocessing.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_testcapi.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_tkinter.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_blake2.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/pyexpat.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sha3.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_ctypes_test.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_testbuffer.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_elementtree.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sha256.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_testimportmultiple.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/parser.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_crypt.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/cmath.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_lzma.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sha512.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/zlib.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/ossaudiodev.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_pickle.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_lsprof.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_cn.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_ssl.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/math.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/grp.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_csv.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_testmultiphase.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/mmap.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_random.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_hk.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/audioop.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_tw.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_iso2022.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/spwd.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/binascii.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_opcode.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/nis.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc to 644
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.opt-1.pyc to 644
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.opt-2.pyc to 644
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_kr.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/ to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__ to 755
running install_scripts
copying build/scripts-3.6/pyvenv-3.6 -> /home/wangfeng/.pyenv/versions/3.6.10/bin
copying build/scripts-3.6/2to3-3.6 -> /home/wangfeng/.pyenv/versions/3.6.10/bin
copying build/scripts-3.6/idle3.6 -> /home/wangfeng/.pyenv/versions/3.6.10/bin
copying build/scripts-3.6/pydoc3.6 -> /home/wangfeng/.pyenv/versions/3.6.10/bin
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/bin/pyvenv-3.6 to 775
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/bin/2to3-3.6 to 775
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/bin/idle3.6 to 775
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/bin/pydoc3.6 to 775
rm /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sysconfigdata_m_linux_x86_64-linux-gnu.py
rm -r /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__
Creating directory /home/wangfeng/.pyenv/versions/3.6.10/share/man
Creating directory /home/wangfeng/.pyenv/versions/3.6.10/share/man/man1
/usr/bin/install -c -m 644 ./Misc/python.man \
/home/wangfeng/.pyenv/versions/3.6.10/share/man/man1/python3.6.1
if test ! -d /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig; then \
echo "Creating directory /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig"; \
/usr/bin/install -c -d -m 755 /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig; \
fi
if test -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3 -o -h /home/wangfeng/.pyenv/versions/3.6.10/bin/python3; \
then rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3; \
else true; \
fi
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s python3.6 python3)
if test "3.6" != "3.6m"; then \
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3.6-config; \
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s python3.6m-config python3.6-config); \
rm -f /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig/python-3.6m.pc; \
(cd /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig; ln -s python-3.6.pc python-3.6m.pc); \
fi
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3-config
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s python3.6-config python3-config)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig/python3.pc
(cd /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig; ln -s python-3.6.pc python3.pc)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/idle3
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s idle3.6 idle3)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/pydoc3
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s pydoc3.6 pydoc3)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/2to3
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s 2to3-3.6 2to3)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/pyvenv
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s pyvenv-3.6 pyvenv)
if test "x" != "x" ; then \
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3-32; \
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s python3.6-32 python3-32) \
fi
rm -f /home/wangfeng/.pyenv/versions/3.6.10/share/man/man1/python3.1
(cd /home/wangfeng/.pyenv/versions/3.6.10/share/man/man1; ln -s python3.6.1 python3.1)
if test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
LD_LIBRARY_PATH=/tmp/python-build.20231107105403.227735/Python-3.6.10 ./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Looking in links: /tmp/tmp7unpx4wj
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-18.1 setuptools-40.6.2
/home/wangfeng/.pyenv/plugins/python-build/bin/python-build: line 1835: 239201 Segmentation fault (core dumped) "$PYTHON_BIN" -c "import $1"
WARNING: The Python ctypes extension was not compiled. Missing the libffi lib?
/home/wangfeng/.pyenv/plugins/python-build/bin/python-build: line 2056: 239209 Segmentation fault (core dumped) "$PYTHON_BIN" $python_opts -m ensurepip ${ensurepip_opts} > /dev/null 2>&1
Installing pip from https://bootstrap.pypa.io/pip/3.6/get-pip.py...
/home/wangfeng/.pyenv/plugins/python-build/bin/python-build: line 2032: 239214 Segmentation fault (core dumped) "${PYTHON_BIN}" -s "${get_pip}" ${GET_PIP_OPTS} 1>&4 2>&1
error: failed to install pip via get-pip.py
BUILD FAILED (Ubuntu 22.04 using python-build 2.3.31)
Inspect or clean up the working tree at /tmp/python-build.20231107105403.227735
Results logged to /tmp/python-build.20231107105403.227735.log
Last 10 log lines:
install|*) ensurepip="" ;; \
esac; \
LD_LIBRARY_PATH=/tmp/python-build.20231107105403.227735/Python-3.6.10 ./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Looking in links: /tmp/tmp7unpx4wj
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-18.1 setuptools-40.6.2
1.尝试安装下其他版本的Python试试,检查是python版本的问题还是pyenv的安装环境
安装3.10.5是可以的
wangfeng@wangfeng-HP-ProDesk-680-G6-PCI-Microtower-PC:~$ pyenv install 3.10.5
Downloading Python-3.10.5.tar.xz...
-> https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tar.xz
Installing Python-3.10.5...
Installed Python-3.10.5 to /home/wangfeng/.pyenv/versions/3.10.5
2:官方说稳定版是3.6.15
wangfeng@wangfeng-HP-ProDesk-680-G6-PCI-Microtower-PC:~$ pyenv install 3.10.5
Downloading Python-3.10.5.tar.xz...
-> https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tar.xz
Installing Python-3.10.5...
Installed Python-3.10.5 to /home/wangfeng/.pyenv/versions/3.10.5
wangfeng@wangfeng-HP-ProDesk-680-G6-PCI-Microtower-PC:~$ pyenv install 3.6.15
Downloading Python-3.6.15.tar.xz...
-> https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tar.xz
Installing Python-3.6.15...
patching file configure
patching file configure.ac
patching file Misc/NEWS.d/next/macOS/2019-06-03-05-49-49.bpo-36231.RfmW_p.rst
patching file setup.py
patching file setup.py
patching file Doc/library/ctypes.rst
patching file Lib/test/test_unicode.py
patching file Modules/_ctypes/_ctypes.c
patching file Modules/_ctypes/callproc.c
patching file Modules/_ctypes/ctypes.h
patching file setup.py
patching file Misc/NEWS.d/next/macOS/2020-06-24-13-51-57.bpo-41100.mcHdc5.rst
patching file configure
patching file configure.ac
patching file 'Misc/NEWS.d/next/Core and Builtins/2020-06-30-04-44-29.bpo-41100.PJwA6F.rst'
patching file Modules/_decimal/libmpdec/mpdecimal.h
patching file setup.py
patching file Misc/NEWS.d/next/Build/2021-10-11-16-27-38.bpo-45405.iSfdW5.rst
patching file configure
patching file configure.ac
patching file 'Misc/NEWS.d/next/Core and Builtins/2019-04-16-11-52-21.bpo-27987.n2_DcQ.rst'
patching file Objects/obmalloc.c
patching file Include/objimpl.h
patching file 'Misc/NEWS.d/next/Core and Builtins/2019-05-15-18-28-43.bpo-27987.FaxuLy.rst'
Installed Python-3.6.15 to /home/wangfeng/.pyenv/versions/3.6.15
#SSH配置
wangfeng@wangfeng-HP-ProDesk-680-G6-PCI-Microtower-PC:~$ ssh-keygen -t ed25519 -C "<comment>"
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/wangfeng/.ssh/id_ed25519):
/home/wangfeng/.ssh/id_ed25519 already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase): 19980719
Enter same passphrase again:
Your identification has been saved in /home/wangfeng/.ssh/id_ed25519
Your public key has been saved in /home/wangfeng/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:11D12P2AoQgkWaHtteulvK2TODlqoB7ptwsGO99rrbg <comment>
The key's randomart image is:
+--[ED25519 256]--+
| .+=. o.. |
| .+ . . o o +.|
| . . o o . o +|
| . . . o ..|
|. . S . . .|
|..o o |
|o* . . o... |
|+oo+o *oo+ |
|.oE*B+ o*+. |
+----[SHA256]-----+
bashrc中的内容的修改
##出现文件错误:
bash: /home/wangfeng/.bashrc: line 130: syntax error: unexpected end of file
# >>> VSCode venv deactivate hook >>>
# source ~/.vscode-python/deactivate
# set variable identifying the chroot you work in (used in the prompt below)
# if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
# debian_chroot=$(cat /etc/debian_chroot)
# fi# <<< VSCode venv deactivate hook <<<
重新恢复之前的配置
新增的内容是:pyenv的初始化配置
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
export PYENV_ROOT=~/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
# export PATH="/home/wangfeng/.local/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)".
export PATH="/home/wangfeng/.local/bin:$PATH"
# fi
# export PYENV_ROOT=~/.pyenv
# export PATH=$PYENV_ROOT/bin:$PATH
# eval "$(pyenv init --path)"
# eval "$(pyenv init -)
# "
vscode中的内容
# >>> VSCode venv deactivate hook >>>
source ~/.vscode-python/deactivate
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi # <<< VSCode venv deactivate hook <<<x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
重复的内容
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
export PYENV_ROOT=~/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
# export PATH="/home/wangfeng/.local/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)".
export PATH="/home/wangfeng/.local/bin:$PATH"
fi
export PYENV_ROOT=~/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
eval "$(pyenv init --path)"
eval "$(pyenv init -)
"
# >>> VSCode venv deactivate hook >>>
source ~/.vscode-python/deactivate
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi # <<< VSCode venv deactivate hook <<<c
更改为默认设置
https://blog.csdn.net/qq_31676483/article/details/114108380
重新安装pyenv
echo 'export PYENV_ROOT=~/.pyenv' >> ~/.bashrc && \
echo 'export PATH=$PYENV_ROOT/bin:$PATH' >> ~/.bashrc && \
echo 'eval "$(pyenv init --path)"' >> ~/.bashrc && \
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
VScode的设置
同时打开多个窗口
https://blog.51cto.com/u_15127508/3442293
服务器查看gpu资源
(xtuner-env) [hadoop-mtai@set-zw03-kubernetes-pc242 ~]$ lspci | grep -i nvidia
04:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
05:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
08:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
09:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
85:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
86:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
89:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
8a:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
lspci:这是一个Linux命令,用于列出PCI设备的信息。PCI(Peripheral Component Interconnect)是一种用于连接计算机主板与外围设备的总线标准。
grep -i nvidia:grep 是一个用于文本搜索的工具,-i 参数表示忽略大小写,所以这里它会搜索所有包含“nvidia”的行(这里的i是“ignore-case”的缩写)
04:00.0, 05:00.0, 08:00.0, …:这些是PCI设备的地址。每个GPU设备在PCI总线上都有一个唯一的地址。
3D controller:这表示这些设备是3D图形控制器,也就是GPU(图形处理单元)。
NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB]:这是设备的制造商和型号。这里,它们都是NVIDIA的Tesla V100 GPU,具有PCIe接口和32GB的显存。