当前位置:网站首页>[Julia] exit notes - Serial
[Julia] exit notes - Serial
2022-07-06 10:09:00 【along】
【Julia】 Pit exit notes - Serial
- One 、PyCall Installation failed
- Two 、PyPlot Installation failed
- 3、 ... and 、 solve pip Use exception No module named 'pip'
One 、PyCall Installation failed
julia> Pkg.build(“PyCall”)
┌ Error: Error building PyCall:
│ ┌ Info: Using the Python distribution in the Conda package by default.
│ └ To use a different Python version, set ENV[“PYTHON”]=“pythoncommand” and re-run Pkg.build(“PyCall”).
- 1.
- 2.
- 3.
- 4.
- 5.
Note that this must be set to python.exe
The absolute path of , And need to add \\
Double slash ,
ENV[“PYTHON”]=“D:\\Program Files\\Python\\Python38\\python.exe”
Here's the picture , Restart after adding environment variables julia that will do
julia> using Pkg
julia> Pkg.build("PyCall")
Building Conda ─→ `C:\Users\Administrator\.julia\packages\Conda\3rPhK\deps\build.log`
Building PyCall → `C:\Users\Administrator\.julia\packages\PyCall\zqDXB\deps\build.log`
julia>
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
Two 、PyPlot Installation failed
The reason for the failure is Python
No installation ModuleNotFoundError
modular .
julia> using PyPlot
[ Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee]
ERROR: InitError: PyError (PyImport_ImportModule
The Python package matplotlib could not be found by pyimport. Usually this means
that you did not install matplotlib in the Python version being used by PyCall.
PyCall is currently configured to use the Python version at:
D:\Program Files\Python\Python38\python.exe
and you should use whatever mechanism you usually use (apt-get, pip, conda,
etcetera) to install the Python package containing the matplotlib module.
ModuleNotFoundError("No module named 'matplotlib'")
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
resolvent :
to update pip:python -m pip install -U pip setuptools
install matplotlib:python -m pip install matplotlib
If you use pip Slow network speed during installation , have access to pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
Temporarily use Tsinghua's source download .
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U pip setuptools
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
C:\Users\Administrator>python -m pip install -U pip setuptools
Collecting pip
Downloading pip-20.2.2-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 5.4 kB/s
Collecting setuptools
Downloading setuptools-50.0.0-py3-none-any.whl (783 kB)
|████████████████████████████████| 783 kB 4.2 kB/s
Installing collected packages: pip, setuptools
Attempting uninstall: pip
Found existing installation: pip 20.1.1
Uninstalling pip-20.1.1:
Successfully uninstalled pip-20.1.1
Attempting uninstall: setuptools
Found existing installation: setuptools 47.1.0
Uninstalling setuptools-47.1.0:
Successfully uninstalled setuptools-47.1.0
Successfully installed pip-20.2.2 setuptools-50.0.0
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
The previous downloads are A few KB, Switch the source of Tsinghua , How many in an instant M, It's much faster :
C:\Users\Administrator>python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting matplotlib
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9a/01/d93c5a577c7a1ce728c4a021b8e0ac9bb37dc7f355402f690bb0a2c61194/matplotlib-3.3.1-1-cp38-cp38-win_amd64.whl (8.9 MB)
|████████████████████████████████| 8.9 MB 6.4 MB/s
Collecting certifi>=2020.06.20
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/5e/c4/6c4fe722df5343c33226f0b4e0bb042e4dc13483228b4718baf286f86d87/certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
|████████████████████████████████| 156 kB 6.4 MB/s
Collecting python-dateutil>=2.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
|████████████████████████████████| 227 kB 6.4 MB/s
Collecting numpy>=1.15
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c7/7d/ea9e28c3a99f50e77ee9a0e3759adb6537b2bb7a84aef27b8c0ddc431b48/numpy-1.19.1-cp38-cp38-win_amd64.whl (13.0 MB)
|████████████████████████████████| 13.0 MB 6.4 MB/s
Collecting kiwisolver>=1.0.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/37/97/cec83ff97d2c5190094e1331e32900b3c51623abbb1d8de229c119588375/kiwisolver-1.2.0-cp38-none-win_amd64.whl (58 kB)
|████████████████████████████████| 58 kB 2.6 MB/s
Collecting cycler>=0.10
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
|████████████████████████████████| 67 kB 2.8 MB/s
Collecting pillow>=6.2.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/91/d2/30ecd905746d1fee4004daae3f0051bf4b305bee1fe578bd7d1ea712d571/Pillow-7.2.0-cp38-cp38-win_amd64.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 6.8 MB/s
Collecting six>=1.5
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: certifi, six, python-dateutil, numpy, kiwisolver, cycler, pyparsing, pillow, matplotlib
Successfully installed certifi-2020.6.20 cycler-0.10.0 kiwisolver-1.2.0 matplotlib-3.3.1 numpy-1.19.1 pillow-7.2.0 pyparsing-2.4.7 python-dateutil-2.8.1 six-1.15.0
C:\Users\Administrator>
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
Permanent modification :
- linux Next , modify ~/.pip/pip.conf ( Create a ), modify
index-url
to tuna
, The contents are as follows :
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
- windows Next , Directly in user Create a pip Catalog , Such as :C:\Users\xx\pip, New file
pip.ini
, The contents are as follows
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
3、 ... and 、 solve pip Use exception No module named ‘pip’
Use python -m ensurepip
Auto repair .
边栏推荐
- 51单片机进修的一些感悟
- If a university wants to choose to study automation, what books can it read in advance?
- Competition vscode Configuration Guide
- The 32 year old programmer left and was admitted by pinduoduo and foreign enterprises. After drying out his annual salary, he sighed: it's hard to choose
- MySQL实战优化高手03 用一次数据更新流程,初步了解InnoDB存储引擎的架构设计
- C杂讲 文件 初讲
- MySQL实战优化高手06 生产经验:互联网公司的生产环境数据库是如何进行性能测试的?
- The real future of hardware engineers may not be believed by you if I say so
- Tianmu MVC audit II
- MySQL实战优化高手09 生产经验:如何为生产环境中的数据库部署监控系统?
猜你喜欢
C miscellaneous dynamic linked list operation
jar运行报错no main manifest attribute
软件测试工程师必备之软技能:结构化思维
[NLP] bert4vec: a sentence vector generation tool based on pre training
MySQL实战优化高手11 从数据的增删改开始讲起,回顾一下Buffer Pool在数据库里的地位
C杂讲 文件 初讲
15 medical registration system_ [appointment registration]
Can I learn PLC at the age of 33
112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
嵌入式开发比单片机要难很多?谈谈单片机和嵌入式开发设计经历
随机推荐
How does the single chip microcomputer execute the main function from power on reset?
MySQL ERROR 1040: Too many connections
The governor of New Jersey signed seven bills to improve gun safety
通过bat脚本配置系统环境变量
Programmation défensive en langage C dans le développement intégré
Compress decompress
Canoe cannot automatically identify serial port number? Then encapsulate a DLL so that it must work
Simple solution to phpjm encryption problem free phpjm decryption tool
MySQL实战优化高手04 借着更新语句在InnoDB存储引擎中的执行流程,聊聊binlog是什么?
安装OpenCV时遇到的几种错误
C杂讲 双向循环链表
单片机如何从上电复位执行到main函数?
max-flow min-cut
Why is 51+ assembly in college SCM class? Why not come directly to STM32
Installation of pagoda and deployment of flask project
西南大学:胡航-关于学习行为和学习效果分析
CANoe仿真功能之自动化序列(Automation Sequences )
手把手教您怎么编写第一个单片机程序
解决在window中远程连接Linux下的MySQL
Learning SCM is of great help to society