python3.12安裝jupyter環(huán)境的實現(xiàn)
一、編譯安裝python3.12
python3.12必須使用openssl1.1.1以上版本,否則pip安裝組件的時候會報SSLErr錯誤
1.編譯安裝openssl1.1.1
wget -c https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gz tar -zxvf openssl-1.1.1w.tar.gz ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl shared zlib make install -j 4 ln -sf /usr/local/openssl/bin/openssl /usr/bin/openssl echo "/usr/local/openssl/lib" >> /etc/ld.so.conf.d/openssl.conf ldconfig
2、編譯安裝python3.12
wget -c https://www.python.org/ftp/python/3.12.4/Python-3.12.4.tar.xz tar -xvf Python-3.12.4.tar.xz ./configure --enable-optimizations --with-openssl=/usr/local/openssl --prefix=/usr/local/python3 make install -j 4 ln -sf /usr/local/python3/bin/python3.12 /usr/local/bin/python ln -sf /usr/local/python3/bin/python3.12 /usr/local/bin/python3 ln -sf /usr/local/python3/bin/pip3.12 /usr/local/bin/pip3 ln -sf /usr/local/python3/bin/pip3.12 /usr/local/bin/pip vi /etc/profile export PYTHON_HOME=/usr/local/python3 export PATH=$PATH:$PYTHON_HOME/bin:
3、使用pip安裝jupyter服務(wù)
#安裝組件 pip install jupyter notebook #生成配置 python jupyter notebook --generate-config --allow-root #在生成的~/.jupyter/jupyter_notebook_config.py配置文件最后加入 c.NotebookApp.ip="*" c.NotebookApp.allow_root=True c.NotebookApp.open_browser=False c.NotebookApp.port=4090 c.ContentsManager.root_dir='/opt/jupyter/root' #生成密碼 jupyter notebook password #啟動服務(wù) nohup jupyter notebook > /opt/jupyter/jupyter.log 2>&1 &
附:vbox虛擬機(jī)分區(qū)調(diào)整(/home:150G /root:50G)
1、卸載/home目錄 umount /home 如提示device is busy,可使用lsof /home命令取得pid后執(zhí)行kill 直接到卸載成功
2、移除/home分區(qū) lvremove /dev/mapper/centos-home
3、擴(kuò)展/root所在的lv,增加100G lvextend -L +100G /dev/mapper/centos-root
4、擴(kuò)展/root文件系統(tǒng)xfs_growfs /dev/mapper/centos-root
5、重新創(chuàng)建/home分區(qū) lvcreate -L 40G -n home centos
6、掛載/home分區(qū) ?mount /dev/centos/home /home
7、查看分區(qū)信息 df -hT
到此這篇關(guān)于python3.12安裝jupyter環(huán)境的實現(xiàn)的文章就介紹到這了,更多相關(guān)python3.12安裝jupyter內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Python實現(xiàn)隨機(jī)漫步的詳細(xì)過程
隨機(jī)漫步顧名思義每一步都是隨機(jī)的,假設(shè)有一個點,下一步往哪里走,走多遠(yuǎn),這些都沒有明確的表示,完全是隨機(jī)的,最后走到哪里,是由一系列隨機(jī)決策決定的,這篇文章主要給大家介紹了關(guān)于Python實現(xiàn)隨機(jī)漫步的相關(guān)資料,需要的朋友可以參考下2023-03-03
python GUI庫圖形界面開發(fā)之PyQt5計數(shù)器控件QSpinBox詳細(xì)使用方法與實例
這篇文章主要介紹了python GUI庫圖形界面開發(fā)之PyQt5計數(shù)器控件QSpinBox詳細(xì)使用方法與實例,需要的朋友可以參考下2020-02-02
python實現(xiàn)Android與windows局域網(wǎng)文件夾同步
這篇文章主要給大家詳細(xì)介紹了python實現(xiàn)Android與windows局域網(wǎng)文件夾同步,文中有詳細(xì)的代碼示例和圖文介紹,具有一定的參考價值,需要的朋友可以參考下2023-09-09
Python3交互式shell ipython3安裝及使用詳解
這篇文章主要介紹了Python3交互式shell ipython3安裝及使用詳解,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下2020-07-07

