【工位ubuntu的配置】补充

news2024/11/16 16:38:12

软件

安装桌面图标的问题

在这里插入图片描述

登录密码

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的显存。

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

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

相关文章

【MATLAB源码-第28期】基于matlab的16QAM定时同步仿真,采用gardner算法,Costa锁相环。

操作环境&#xff1a; MATLAB 2022a 1、算法描述 正交幅度调制&#xff08;QAM&#xff0c;Quadrature Amplitude Modulation&#xff09;是一种在两个正交载波上进行幅度调制的调制方式。这两个载波通常是相位差为90度&#xff08;π/2&#xff09;的正弦波&#xff0c;因此…

手势估计 | 使用TensorRT实现的实时手势估计+手势分类

项目应用场景 面向手势识别场景&#xff0c;项目具有实时手势识别 手势分类功能&#xff0c;采用 TensorRT 进行 GPU 加速推理&#xff0c;可通过手势识别进行远程控制。 项目效果 项目细节 > 具体参见项目 README.md (1) 安装依赖 git clone https://github.com/NVIDIA-…

VN6501使用方法(学习笔记)

1:总体简介 VNA6501可以进行CAN Stress测试&#xff0c;可以进行采样点测试。此外VN6501还能够定制&#xff0c;外围测试电路&#xff08;通过软件配置&#xff0c;部分情况是需要连接VN6501的部分接口&#xff09;。 关于外围测试电路&#xff08;添加电容&#xff0c;电阻&…

iOS ------ Block的总结

前面看了Block的基本知识&#xff0c;和一些源码。但对于block怎么用的还不了解&#xff0c;代码中出现block会看不懂&#xff0c;现在来具体看一下Block的用法并做个总结。 1.Block是什么 block对象是一个C语言结构体&#xff0c;可以并入C和OC的代码中&#xff0c;Block本质…

C语言基础知识巩固——1.基本知识

语言是面向过程的&#xff0c;体现为其通过函数及其调用关系来描述程序逻辑 将大问题拆解为一套流程&#xff0c;执行这套流程中的各个步骤即可&#xff1a; 每一个步骤有明确的入口和出口每一个步骤可以继续拆解为一套更细化的流程最后得到描述问题解决方案的完整逻辑 函数…

指针专题(1)

前言 指针在C语言中占据着重要的位置&#xff0c;对指针的掌握度会直接影响到编写C语言代码的能力&#xff0c;而且指针的难度较大&#xff0c;所以我们要认真的学习指针。那么废话不多说&#xff0c;我们正式进入今天的指针学习 &#xff08;PS&#xff1a;之前有关指针、结构…

前端开发攻略---Vue项目(Vue2和Vue3)引入高德地图,超详细,超简单,保姆级教程。

1、图片演示 2、引入前的准备 1、前往 高德开放平台 进行账号注册。如果手机上有高德地图App并且已经登录过&#xff0c;则可以直接选择登录 2、注册/登录完成后来到应用管理-->我的应用 3、点击创建新应用 4、填写好应用名称和选择应用类型 5、填写好后点击添加Key 6、填写…

2024.4.18

思维导图 数据库 #include <myhead.h> //添加学生信息 void insert_stu(sqlite3* sq,char* errMsg) {char text[128];int ID,age,height;char name[10];scanf("%d%s%d%d",&ID,name,&age,&height);sprintf(text,"insert into Student values …

网络运输层之(3)GRE协议

网络运输层之(3)GRE协议 Author: Once Day Date: 2024年4月8日 一位热衷于Linux学习和开发的菜鸟&#xff0c;试图谱写一场冒险之旅&#xff0c;也许终点只是一场白日梦… 漫漫长路&#xff0c;有人对你微笑过嘛… 全系列文档可参考专栏&#xff1a;通信网络技术_Once-Day的…

html之标签学习(带你进来,别犹豫,是你喜欢的样子)

html之标签学习 学习 HTML 标签是创建网页的第一步&#xff0c;HTML&#xff08;Hypertext Markup Language&#xff09;是一种用于创建网页的标记语言&#xff0c;它由一系列的元素&#xff08;标签&#xff09;组成&#xff0c;每个元素都可以用来标记文档的不同部分或者给文…

仿真测试平台设计资料:921-6U CPCI卫星接口仿真测试平台

6U CPCI卫星接口仿真测试平台 一、设备概述 卫星接口仿真测试平台基于6U CPCI的结构&#xff0c;包含信号接口前板、后板&#xff0c;计算机主板、机箱、电源等硬件。硬件设计包括&#xff1a;信号接口前板、后板&#xff08;直接遥测遥控、串行RS422、LVDS&#xff0c;模拟量输…

Http 请求偶发400错误

1. 背景 生产环境偶发400请求错误&#xff0c;发生概率万分之一&#xff0c;异常信息如下&#xff1a; 1&#xff09; 从异常信息可以看到&#xff0c;skywalking的sw8 header解析失效导致异常信息。 2&#xff09; 0x0d0x0a 作为回车换行符号&#xff0c;没有被正确处理&#…

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

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

【赛题】2024年“华中杯”数模竞赛赛题发布

2024年"华中杯"数学建模网络挑战赛——正式开赛&#xff01;&#xff01;&#xff01; 赛题已发布&#xff0c;后续无偿分享各题的解题思路、参考文献&#xff0c;帮助大家最快时间&#xff0c;选择最适合是自己的赛题。祝大家都能取得一个好成绩&#xff0c;加油&a…

Rust腐蚀服务器插件安装教程

Rust腐蚀服务器插件安装教程 大家好我是艾西&#xff0c;一个做服务器租用的网络架构师。之前教大家怎么搭建Rust腐蚀服务器&#xff0c;那么很多小伙伴在搭建完成后发现自己的游戏跟平台玩的还是有差别&#xff0c;其实这里主要缺少mod插件了。那么本期我们教一下大家mod插件…

Swagger接口文档 —— 手把手教学,全方位超详细小白能看懂,百分百能用Java版

&#x1f9f8;欢迎来到dream_ready的博客&#xff0c;&#x1f4dc;相信您对博主首页也很感兴趣o (ˉ▽ˉ&#xff1b;) 博主首页&#xff0c;更多redis、java等优质好文以及各种保姆级教程等您挖掘&#xff01; 目录 一、介绍 二、导入依赖 三、在配置类中加入 knife4j 相关…

图像分割:Pytorch实现UNet++进行医学细胞分割

图像分割&#xff1a;Pytorch实现UNet进行医学细胞分割 前言相关介绍项目结构具体步骤准备数据集读取数据集设置并解析相关参数定义网络模型定义损失函数定义优化器训练验证 参考 前言 由于本人水平有限&#xff0c;难免出现错漏&#xff0c;敬请批评改正。更多精彩内容&#x…

应急响应-战中反制对抗上线CSGoby蚁剑Sqlmap等安全工具

知识点 战中-反制-安全工具篇CS反制(有版本限制) Goby反制&#xff08;有版本限制&#xff0c;新版goby已修复&#xff09; Antsword反制(有版本限制&#xff0c;别人也不一定用蚁剑) AWVS反制(有版本限制&#xff0c;在awvs 10版本存在&#xff09; BURP反制(有版本限制&…

git 删除本地分支 删除远程仓库中的分支

语法&#xff1a; 删除本地分支 git branch -D <分支名>删除远程分支 git push <remote名称> <分支名> --delete 示例&#xff1a; 删除本地分支 git branch -D feature/test_listview删除远程分支 git push origin feature/test_listview --delete 两个…

【计算机组成原理】加法器原理及其优化

苏泽 本专栏纯个人笔记作用 用于记录408 学习的笔记记录&#xff08;敲了两年码实在不习惯手写笔记了&#xff09; 如果能帮助到大家当然最好 但由于是工作后退下来备考 很多说法和想法都会结合实际开发的思想 可能不是那么的纯粹应试哈 希望大家挑选自己喜欢的口味食用…