python - Julia 在已安装 python 3.6 的情况下安装了 python 2.7
问题描述
我已经通过 Anaconda3 安装了 python 3.6,然后是 julia 0.6.2。当我为 julia 安装 PyPlot 包时,它会安装 python 2.7 和 mkl、numpy ......我如何告诉 julia 使用当前安装的 python 3.6,因为我不想安装不同版本的 python。谢谢你。
解决方案
跑:
ENV["PYTHON"] = "... path of the python program you want ..."
Pkg.build("PyCall")
参考:https ://github.com/JuliaPy/PyCall.jl#specifying-the-python-version
推荐阅读
- wordpress - 如何禁用插入块按钮并且不允许在“InnerBlocks”中添加任何块
- azure - Azure Notebook VM 启动失败
- angular-material - 如何主题mat-chip?
- php - 单例数据库连接配置文件
- ifstream - ifstream in HTML only Javascript 没有 Jquery
- ruby - 我如何使用 | 和 > ruby Open3 中的字符?
- python - Tkinter GUI 窗口在后台停止工作
- sql-server - 使用子查询而不是连接从不同的表中选择
- dart - Dart中整数变量的大小是多少
- javascript - 当 chrome 选项卡处于非活动状态运行画布时,内存堆增加