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服務
#安裝組件 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 #啟動服務 nohup jupyter notebook > /opt/jupyter/jupyter.log 2>&1 &
附:vbox虛擬機分區(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、擴展/root所在的lv,增加100G lvextend -L +100G /dev/mapper/centos-root
4、擴展/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)快速文件格式批量轉(zhuǎn)換的方法
這篇文章主要介紹了python實現(xiàn)快速文件格式批量轉(zhuǎn)換的方法,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-10-10TensorFlow利用saver保存和提取參數(shù)的實例
今天小編就為大家分享一篇TensorFlow利用saver保存和提取參數(shù)的實例,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2018-07-07Django REST framework 分頁的實現(xiàn)代碼
這篇文章主要介紹了Django REST framework 分頁的實現(xiàn)代碼,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2019-06-06pycharm命令終端運行python文件以及傳遞參數(shù)方式
這篇文章主要介紹了pycharm命令終端運行python文件以及傳遞參數(shù)方式,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2023-06-06