title: Installing PyJulia on Windows
body: <p>I have been writing code in Python 3 on Windows 10 and need to call a function which was written in Julia, so I have installed Julia and PyJulia. I have encountered a very strange problem, however: while I can import and call Julia modules just fine in Python terminal (though importing them can take an unexpected few seconds), trying to import any Julia module in a Python script will give an error.</p>
  <p>I can run a line</p>
  <pre><code>import julia
  </code></pre>
  <p>just fine, but something as simple as</p>
  <pre><code>from julia import Base 
  </code></pre>
  <p>will give the two dialog boxes and error in terminal screenshotted below. My question is simply, does anyone know what is going on here, or how to fix it? Thanks.</p>
  <p><a href="https://i.stack.imgur.com/dcIG0.png" rel="nofollow noreferrer">dialog1</a></p>
  <p><a href="https://i.stack.imgur.com/qlAML.png" rel="nofollow noreferrer">dialog2</a></p>
  <p><a href="https://i.stack.imgur.com/K9gaL.png" rel="nofollow noreferrer">terminal output</a></p>
  <pre><code>  from julia import Base
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 983, in _find_and_load
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 967, in _find_and_load_unlocked
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 668, in _load_unlocked
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 638, in _load_backward_compatible
  File &quot;C:\ProgramData\Anaconda3\lib\site-packages\julia\core.py&quot;, line 248, in load_module
    elif self.julia.isafunction(juliapath):
  File &quot;C:\ProgramData\Anaconda3\lib\site-packages\julia\core.py&quot;, line 239, in  julia
    self.__class__.julia = julia = Julia()
  File &quot;C:\ProgramData\Anaconda3\lib\site-packages\julia\core.py&quot;, line 472, in __init__
    self.api = LibJulia.from_juliainfo(jlinfo)
  File &quot;C:\ProgramData\Anaconda3\lib\site-packages\julia\libjulia.py&quot;, line 195, in from_juliainfo
    sysimage=juliainfo.sysimage,
  File &quot;C:\ProgramData\Anaconda3\lib\site-packages\julia\libjulia.py&quot;, line 215, in __init__
    self.libjulia = ctypes.PyDLL(libjulia_path, ctypes.RTLD_GLOBAL)
  File &quot;C:\ProgramData\Anaconda3\lib\ctypes\__init__.py&quot;, line 364, in __init__
    self._handle = _dlopen(self._name, mode)
  OSError: [WinError 127] The specified procedure could not be found
  </code></pre>