To add a module to python put in Julialang

background

Julia has a package called PyCall that can call Python. There are PyPlot.jl and PySym.jl that use this, matplotlib and pysym will automatically install these packages The corresponding module is added to Python in Julia.

This time, I investigated doing this manually.

Just use pyimport_conda

It was written that I often read PyCall's Github page.

using PyCall
pyimport_conda("scipy", "scipy")

The meaning of the argument is not well understood. If you know conda You know.

Verification

@pyimport scipy.stats as stats
stats.hmean([1, 2, 4])

Just in case

If you explicitly specify the Python you want to use when inserting PyCall, It seems that this method can not be used, and as appropriate, the module you want to use as pip I think I need to put it in.

Related posts

-Pip pip in Blender-Qiita

Related article

-To draw a scatter plot of arbitrary points in Julia language -Plot the ellipse created by 1/7 in Julia language -Mruby-julia can now call Python from mruby -If you let Julialang make an HTTP2 server -I tried aobench with julia -I tried Japanese word cloud with Julia

Recommended Posts

To add a module to python put in Julialang
How to add a Python module search path
Try to make a Python module in C language
To add a C module to MicroPython ...
[Itertools.permutations] How to put permutations in Python
PUT gzip directly to S3 in Python
How to get a stacktrace in python
[V11 ~] A memorandum to put in Misskey
How to add python module to anaconda environment
Add a Python virtual environment to VSCode
Try to calculate a statistical problem in Python
How to clear tuples in a list (Python)
To execute a Python enumerate function in JavaScript
How to embed a variable in a python string
Create a Python module
I want to create a window in Python
How to create a JSON file in Python
3 steps to put Python + mecab in yum only
[Python] How to put any number of standard inputs in a list
A clever way to time processing in Python
Steps to develop a web application in Python
Use cryptography module to handle OpenSSL in Python
How to notify a Discord channel in Python
I tried adding a Python3 module in C
[Python] How to draw a histogram in Matplotlib
Put out a shortened URL string in Python
Sample to put Python Kivy in one file
I made a module in C language to filter images loaded by Python
Parse a JSON string written to a file in Python
How to convert / restore a string with [] in python
I want to embed a variable in a Python string
I want to easily implement a timeout in python
I want to write in Python! (2) Let's write a test
[Python] How to expand variables in a character string
Create a plugin to run Python Doctest in Vim (2)
I made a script to put a snippet in README.md
I made a Python module to translate comment outs
Create a plugin to run Python Doctest in Vim (1)
A memorandum to run a python script in a bat file
I want to randomly sample a file in Python
I want to work with a robot in python.
Things to note when initializing a list in Python
How to add page numbers to PDF files (in Python)
Introduction to Linear Algebra in Python: A = LU Decomposition
[Python] Created a method to convert radix in 1 second
How to execute a command using subprocess in Python
Publish / upload a library created in Python to PyPI
[Linux] How to put your IP in a variable
Take a screenshot in Python
Create a function in Python
To flush stdout in Python
Create a dictionary in Python
A road to intermediate Python
Add a dictionary to MeCab
Login to website in Python
Make a bookmarklet in Python
Speech to speech in python [text to speech]
How to develop in Python
Draw a heart in Python
Post to Slack in Python
A module that makes it easier to write Perl-like filter programs in Python fileinput