【工位ubuntu的配置】补充

软件

安装桌面图标的问题

在这里插入图片描述

登录密码

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.pyBUILD 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.logLast 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; thenif [ -f /usr/share/bash-completion/bash_completion ]; then. /usr/share/bash-completion/bash_completionelif [ -f /etc/bash_completion ]; then. /etc/bash_completionfi
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 ]; thendebian_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; thenif [ -f /usr/share/bash-completion/bash_completion ]; then. /usr/share/bash-completion/bash_completionelif [ -f /etc/bash_completion ]; then. /etc/bash_completionfi
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 ]; thendebian_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的显存。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/388.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

工业控制(ICS)---modbus

Modbus Modbus&#xff0c;市场占有率高、出题频率高,算是最常见的题目&#xff0c;因为这个协议也是工控领域最常见的协议之一&#xff0c;主要有三类 Modbus/RTU 从机地址1B功能码1B数据字段xBCRC值2B 最大长度256B&#xff0c;所以数据字段最大长度252B Modbus/ASCII …

C++笔记:引用

目录 概念&#xff1a; ​编辑 引用的特性&#xff1a; 引用中的权限问题&#xff1a; 引用与指针的区别&#xff1a; 引用的使用&#xff1a; 概念&#xff1a; 引用是给已存在变量取一个别名&#xff0c;编译器不会为引用变量开辟内存空间。 引用的符号&#xff1a;&…

KV Cache 技术分析

原文&#xff1a;Notion – The all-in-one workspace for your notes, tasks, wikis, and databases. 1 什么是KV Cache LLM&#xff08;大型语言模型&#xff09;中的 Attention 机制中的 KV Cache&#xff08;键值缓存&#xff09;主要作用是存储键值对&#xff0c;以避免在…

ChatGPT又多了一个强有力的竞争对手:Meta发布Llama 3开源模型!附体验地址

大家好&#xff0c;我是木易&#xff0c;一个持续关注AI领域的互联网技术产品经理&#xff0c;国内Top2本科&#xff0c;美国Top10 CS研究生&#xff0c;MBA。我坚信AI是普通人变强的“外挂”&#xff0c;所以创建了“AI信息Gap”这个公众号&#xff0c;专注于分享AI全维度知识…

力扣:两数之和

知识点&#xff1a; 动态数组的创建&#xff1a; #include<stdlib.h> arr (int*)malloc(len * sizeof(int)); 如何使用sacnf输入数组&#xff1a; scanf 函数在读取输入时&#xff0c;会自动跳过空格&#xff08;空格、制表符、换行符等&#xff09;和换行符&#…

vscode绿绿主题setting config

下载插件Green Tree Theme 选greentree ctrl shift p找到setting {"workbench.colorTheme": "Green Tree","editor.fontSize": 16.5, // 字号"workbench.colorCustomizations": {"[Green Tree]": {"activityBarBadge.…

算法一:数字 - 两数之和

给定一个整数数组 nums 和一个目标值 target&#xff0c;请你在该数组中找出和为目标值的那 两个 整数&#xff0c;并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是&#xff0c;数组中同一个元素不能使用两遍。 来源&#xff1a;力扣(LeetCode) 链接&#xf…

scala---基础核心知识(变量定义,数据类型,流程控制,方法定义,函数定义)

一、什么是scala Scala 是一种多范式的编程语言&#xff0c;其设计初衷是要集成面向对象编程和函数式编程的各种特性。Scala运行于Java平台&#xff08;Java虚拟机&#xff09;&#xff0c;并兼容现有的Java程序。 二、为什么要学习scala 1、优雅 2、速度快 3、能融合到hado…

管道流设计模式结合业务

文章目录 流程图代码实现pomcontextEventContextBizTypeAbstractEventContext filterEventFilterAbstractEventFilterEventFilterChainFilterChainPipelineDefaultEventFilterChain selectorFilterSelectorDefaultFilterSelector 调用代码PipelineApplicationcontrollerentitys…

浅析binance新币OMNI的前世今生

大盘跌跌不休&#xff0c;近期唯一的指望就是binance即将上线的OMNI 。虽然目前查到的空投数量不及预期&#xff0c;但OMNI能首发币安&#xff0c;确实远超预期了。 OMNI代币总量1亿&#xff0c;初始流通仅10,391,492枚&#xff0c;其中币安Lanchpool可挖350万枚 对于OMNI这个…

设计模式——模版模式21

模板方法模式在超类中定义了一个事务流程的框架&#xff0c; 允许子类在不修改结构的情况下重写其中一个或者多个特定步骤。下面以ggbond的校招礼盒发放为例。 设计模式&#xff0c;一定要敲代码理解 模版抽象 /*** author ggbond* date 2024年04月18日 17:32* 发送奖品*/ p…

50.HarmonyOS鸿蒙系统 App(ArkUI)web组件实现简易浏览器

50.HarmonyOS鸿蒙系统 App(ArkUI)web组件实现简易浏览器 配置网络访问权限&#xff1a; 跳转任务&#xff1a; Button(转到).onClick(() > {try {// 点击按钮时&#xff0c;通过loadUrl&#xff0c;跳转到www.example1.comthis.webviewController.loadUrl(this.get_url);} …

代码随想录第39天|62.不同路径 63. 不同路径 II

62.不同路径 62. 不同路径 - 力扣&#xff08;LeetCode&#xff09; 代码随想录 (programmercarl.com) 动态规划中如何初始化很重要&#xff01;| LeetCode&#xff1a;62.不同路径_哔哩哔哩_bilibili 一个机器人位于一个 m x n 网格的左上角 &#xff08;起始点在下图中标…

Codeforces Round 782 (Div. 2) D. Reverse Sort Sum

题目 思路&#xff1a; #include <bits/stdc.h> using namespace std; #define int long long #define pb push_back #define fi first #define se second #define lson p << 1 #define rson p << 1 | 1 const int maxn 1e6 5, inf 1e9, maxm 4e4 5; co…

【WP】猿人学4 雪碧图、样式干扰

https://match.yuanrenxue.cn/match/4 探索 首先打开Fiddler&#xff0c;发现每个包的除了page参数一样&#xff0c;然后重放攻击可以实现&#xff0c;尝试py复现 Python可以正常拿到数据&#xff0c;这题不考请求&#xff0c;这题的难点原来在于数据的加密&#xff0c;这些数字…

用10个Kimichat提示词5分钟创建一门在线课程

●研究市场并在生成式AI主题内找到一个特定细分市场&#xff0c;这一市场尚未被现有课程充分覆盖。使用在线研究来收集关于当前可用课程类型的信息&#xff0c;以及市场上存在哪些空白。利用这些信息创建一个填补空白并吸引对“生成式AI”感兴趣的特定受众群体的课程。确定课程…

面试经典算法系列之二叉树17 -- 验证二叉树

面试经典算法32 - 验证二叉树 LeetCode.98 公众号&#xff1a;阿Q技术站 问题描述 给你一个二叉树的根节点 root &#xff0c;判断其是否是一个有效的二叉搜索树。 有效 二叉搜索树定义如下&#xff1a; 节点的左子树只包含 小于 当前节点的数。节点的右子树只包含 大于 当…

ActiveMQ 如果数据处理出现异常会怎么样

我们有一个 Spring 的客户端&#xff0c;在处理消息的时候因为程序的原因出现消息处理异常。 对这种情况&#xff0c;ActiveMQ 会把出现异常的消息放在 DLQ 队列中进行持久化。 因此&#xff0c;在 ActiveMQ 消息处理队列中需要持续关注 DLQ 队列&#xff0c; DLQ 的队列都是无…

生成人工智能体:人类行为的交互式模拟论文与源码架构解析(5)——可控评估端到端评估

最后完结篇,文末有测试中发现的有趣现象,并附上了相关资料链接~ 5.可控评估 分两个阶段评估生成代理。我们从一个更加严格控制的评估开始,单独评估代理的响应,以了解它们是否在狭义上定义的上下文中产生可信的行为。然后,在我们对代理社区进行为期两天的端到端分析中,我…

蓝桥杯2024年第十五届省赛真题-数字接龙

思路&#xff1a;DFS&#xff0c;因为输入的i&#xff0c;j的顺序导致&#xff0c;方向向量中x是行编号&#xff0c;y是列编号。方向向量可能和直觉上不同。 错的 //int dx[8]{0,1,1,1,0,-1,-1,-1}; //int dy[8]{1,1,0,-1,-1,-1,0,1}; 对的 int dx[]{-1,-1,0,1,1,1,0,-1}; int…