【工位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.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的显存。

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

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

永久免费次数ChatGPT国内镜像网站【强烈建议收藏】

gctohttps://chat.tomyres.com/#/pages/web/index?n0 觉得分享的网站好用的话&#xff0c;记得点赞收藏哦。

lettcode179.最大数

问题描述&#xff1a; 给定一组非负整数 nums&#xff0c;重新排列每个数的顺序&#xff08;每个数不可拆分&#xff09;使之组成一个最大的整数。 注意&#xff1a;输出结果可能非常大&#xff0c;所以你需要返回一个字符串而不是整数。 示例一&#xff1a; 输入nums [10…

街景图片语义分割后像素类别提取,用于计算各种指标。

语义分割代码见之前博文&#xff08;免费&#xff09;&#xff1a;deeplabv3街景图片语义分割&#xff0c;无需训练模型&#xff0c;看不懂也没有影响&#xff0c;直接使用。cityscapes 语义分割之后&#xff0c;如下图&#xff0c;想要统计各类像素所占的比例&#xff0c;用于…

2024 MathorCup C 题 物流网络分拣中心货量预测及人员排班

一、问题重述 电商物流网络在订单履约中由多个环节组成&#xff0c;图1是一个简化的物流网络示意图。其中&#xff0c;分拣中心作为网络的中间环节&#xff0c;需要将包裹按照不同流向进行分拣并发往下一个场地&#xff0c;最终使包裹到达消费者手中。分拣中心管理效率的提升&…

初识 React:安装和初步使用指南

文章目录 前言一、React 是什么&#xff1f;1.组件化开发2.虚拟 DOM3.单向数据流4.生态系统丰富 二、安装1.准备工作2.下载react 三、探索 React 应用总结 前言 在当今的 Web 开发领域&#xff0c;React 已经成为了一个备受推崇的技术。它的组件化、灵活性和高效性使得它成为了…

MySQL中InnoDB的行级锁

InnoDB 实现了以下两种类型的行锁。 共享锁&#xff08;S&#xff09;&#xff1a;又称为读锁&#xff0c;简称S锁&#xff0c;共享锁就是多个事务对于同一数据可以共享一把锁&#xff0c;都能访问到数据&#xff0c;但是只能读不能修改。 排他锁&#xff08;X&#xff09;&am…

时间同步服务项目练习

一.配置server主机要求如下&#xff1a; 1.server主机的主机名称为 ntp_server.example.com 2.server主机的IP为&#xff1a; 172.25.254.100 3.server主机的时间为1984-11-11 11&#xff1a;11&#xff1a;11 4.配置server主机的时间同步服务要求可以被所有人使用 更改主机名…

Android开发基础:Activity之间的跳转 向下一个Activity传递数据 给上一个Activity返回数据

目录 一&#xff0c;使用Intent在Activity之间跳转 1.显示使用Intent 2.隐式使用Intent 二&#xff0c;携带数据的跳转 1.Bundle 三&#xff0c;返回数据给上一个Activity 1.registerForActivityResult 一&#xff0c;使用Intent在Activity之间跳转 一个Android应用中包…

APEX开发过程中需要注意的小细节5.5

oracle保留小数点后两位的函数 在日常开发中经常用到百分比做数据对比&#xff0c;但是有可能得到的数据是一个多位小数&#xff0c;结果如下所示&#xff1a; 如果想截取部分小数如保留小数点后两位可以怎么做呢&#xff1f; 在Oracle中&#xff0c;可以使用ROUND函数来四舍…

请警惕,这10本期刊已被SCI剔除,部分涉嫌灌水

科睿唯安于4月15日更新了SCIE、SSCI、AHCI、ESCI四大数据库最新收录期刊目录。 2024年第一版——2024年1月24日更新 2024年第二版——2024年2月19日更新 2024年第三版——2024年3月18日更新 2024年第四版——2024年4月15日更新 本次目录中共收录期刊23368本。 【SCIE数据…

档案集中管理的痛点怎么解决?

档案集中管理可能面临的痛点包括以下几个方面&#xff1a; 1. 档案分类和整理困难&#xff1a;档案集中管理会面临大量档案的分类和整理工作&#xff0c;可能导致混乱和困难。 解决方法&#xff1a; - 建立统一的档案分类规范和流程&#xff0c;确保所有档案都能按照规定的方式…

《QT实用小工具·二十九》托盘图标控件

1、概述 源码放在文章末尾 托盘图标控件 可设置托盘图标对应所属主窗体。 可设置托盘图标。 可设置提示信息。 自带右键菜单。 下面是demo演示&#xff1a; 项目部分代码如下&#xff1a; #ifndef TRAYICON_H #define TRAYICON_H/*** 托盘图标控件* 1. 可设置托盘图标…

Unity类银河恶魔城学习记录12-17 p139 In game UI源代码

Alex教程每一P的教程原代码加上我自己的理解初步理解写的注释&#xff0c;可供学习Alex教程的人参考 此代码仅为较上一P有所改变的代码 【Unity教程】从0编程制作类银河恶魔城游戏_哔哩哔哩_bilibili UI.cs using UnityEngine;public class UI : MonoBehaviour {[SerializeFie…

仿真科普|从设计到研发,CAE仿真技术为汽车智造保驾护航

2024年3月28日&#xff0c;对于汽车产业来说&#xff0c;是历史性的一天&#xff0c;作为近年汽车行业发布会流量最大的一次&#xff0c;小米SU7的发布让整个汽车圈为之沸腾&#xff0c;成功收割全平台热搜。时至今日&#xff0c;小米汽车依然热度不减。 随着“蔚、小、理、特…

Docker镜像,什么是Docker镜像,Docker基本常用命令【搜索,镜像下载,镜像删除,创建容器,导入到处镜像】及其镜像的分层

docker镜像 1.1什么是镜像&#xff0c;镜像基础 1.1.1 镜像的简介 镜像是一种轻量级&#xff0c;可执行的独立软件包&#xff0c;也可以说是一个精简的操作系统。镜像中包含应用软件及应用软件的运行环境&#xff0c;具体来说镜像包含运行某个软件所需的所有内容&#xff0c;…

4*5的矩阵(C语言)

一、N-S流程图&#xff1b; 二、运行结果&#xff1b; 三、源代码&#xff1b; # define _CRT_SECURE_NO_WARNINGS # include <stdio.h>int main() {//初始化变量值&#xff1b;int i 0;int j 0;int result 0;//嵌套循环输出&#xff1b;for (i 1; i < 4; i){//列…

基于Python dlib的实时人脸识别,附源码

博主介绍&#xff1a;✌IT徐师兄、7年大厂程序员经历。全网粉丝15W、csdn博客专家、掘金/华为云//InfoQ等平台优质作者、专注于Java技术领域和毕业项目实战✌ &#x1f345;文末获取源码联系&#x1f345; &#x1f447;&#x1f3fb; 精彩专栏推荐订阅&#x1f447;&#x1f3…

Linux进程与管理,计划任务

1.虚拟内存统计 vmstat可以用来监控CPU使用&#xff0c;进程状态&#xff0c;内存使用&#xff0c;虚拟内存使用&#xff0c;硬盘输入输出状态等信息。 字段解释&#xff1a; procs进程信息&#xff1a;r&#xff1a;等待运行的程序数&#xff1b;b&#xff1a;不可被唤醒的进…

【电控笔记3.5】三相逆变器

基础 大小调变指标ma 频率调变指标mf 载波频率:pwm频率

wps导出pdf文献引用不能跳转解决办法

问题描述 本科论文参考文献使用wps设置交叉引用&#xff0c;但导出pdf后无法跳转引用 尝试 用office word打开文件word版跳转没有问题&#xff0c; 另存为pdf或导出pdf。 但是pdf版跳转完全错误。 16跳到14.但是总体而言都是跳到包含该序号的页 要求不高的话也可以&#x…