I'm trying to import pyo for this project I'm working on but this is the output I get when I try to do so:
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\spark\AppData\Roaming\Python\Python37\site-packages\pyo\__init__.py", line 28, in <module>
from .lib import analysis as analysis
File "C:\Users\spark\AppData\Roaming\Python\Python37\site-packages\pyo\lib\analysis.py", line 32, in <module>
from ._core import *
File "C:\Users\spark\AppData\Roaming\Python\Python37\site-packages\pyo\lib\_core.py", line 58, in <module>
from .._pyo import *
ImportError: DLL load failed: The specified module could not be found.
I've tried uninstalling and downgrading pyo but I can't seem to get it to import. Can anyone help me out?
Related
When I import torch, I get the following error:
I dont know if it has something to do with the fact i just install cuda11.6.
I tried to unintalled and install pytorch , it didn't work.
Python 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 06:08:21)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/zengyunzi1/.conda/envs/yz/lib/python3.7/site-packages/torch/__init__.py", line 603, in <module>
from ._tensor import Tensor
File "/home/zengyunzi1/.conda/envs/yz/lib/python3.7/site-packages/torch/_tensor.py", line 15, in <module>
from torch.overrides import (
File "/home/zengyunzi1/.conda/envs/yz/lib/python3.7/site-packages/torch/overrides.py", line 33, in <module>
from torch._C import (
ImportError: cannot import name '_has_torch_function' from 'torch._C' (/home/zengyunzi1/.conda/envs/yz/lib/python3.7/site-packages/torch/_C.cpython-37m-x86_64-linux-gnu.so)
>>>
I have installed Microsoft Visual C++ 14.0 and I have uninstalled and installed Anaconda and packages(pandas, pandas-datareader) several times.
Now I installed zipline by pip install zipline but when I try to import zipline I got a importerror
Python 3.5.5 |Anaconda, Inc.| (default, Apr 7 2018, 04:53:16) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipline
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Anaconda3\envs\py35\lib\site-packages\zipline\__init__.py", line 25, in <module>
from . import data
File "C:\Anaconda3\envs\py35\lib\site-packages\zipline\data\__init__.py", line 1, in <module>
from . import loader
File "C:\Anaconda3\envs\py35\lib\site-packages\zipline\data\loader.py", line 26, in <module>
from pandas.io.data import DataReader
ImportError: No module named 'pandas.io.data'
I get the following error. I also installed PIP Parse and dataset using PIP install
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import dataset
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27amd64\lib\site-packages\dataset\__init__.py", line 3, in <module>
from dataset.database import Database
File "C:\Python27amd64\lib\site-packages\dataset\database.py", line 3, in <module>
from urllib.parse import parse_qs, urlparse
ImportError: No module named parse
I am receiving the following error when trying to import AccessControl.
C:\windows\system32>python
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import AccessControl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\AccessControl\__init__.py", line 16, in <module>
from AccessControl.Implementation import setImplementation
File "C:\Python27\lib\site-packages\AccessControl\Implementation.py", line 96, in <module>
setImplementation("C")
File "C:\Python27\lib\site-packages\AccessControl\Implementation.py", line 51, in setImplementation
from AccessControl import ImplC as impl
File "C:\Python27\lib\site-packages\AccessControl\ImplC.py", line 17, in <module>
from AccessControl.cAccessControl import rolesForPermissionOn
AttributeError: 'module' object has no attribute 'CAPI2'
I have tried to reinstalling the library but the problem remains the same.
The only thing I found while searching the error is this page but I did not understand the solution.
Solved this by reinstalling python and all the libraries.
I am trying to use sklearn in Windows 7 with Python 3.5, via the pre-compiled Windows binaries at http://www.lfd.uci.edu/~gohlke/pythonlibs/
I have installed
dask-0.7.5-py2.py3-none-any.whl
scikit_learn-0.17-cp35-none-win_amd64.whl
scipy-0.16.1-cp35-none-win_amd64.whl
numpy-1.9.3+mkl-cp35-none-win_amd64.whl
pandas-0.17.1-cp35-none-win_amd64.whl
without any errors at install time. Following another SO thread with the same error, I made sure that C:/python35 is both in my Path and is set as the PYTHONPATH.
I also have Visual Studio 2013 C++ installed.
When I go to import sklearn I get this error:
C:\Users\user>python
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sklearn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python35\lib\site-packages\sklearn\__init__.py", line 57, in <module>
from .base import clone
File "C:\Python35\lib\site-packages\sklearn\base.py", line 9, in <module>
from scipy import sparse
File "C:\Python35\lib\site-packages\scipy\sparse\__init__.py", line 213, in <module>
from .csr import *
File "C:\Python35\lib\site-packages\scipy\sparse\csr.py", line 13, in <module>
from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: DLL load failed: The specified module could not be found.
Update: BrianCain's suggestion to upgrade Visual Studio C++ to version 2015 worked!