Python Forum
package(s) error pykdtree - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: package(s) error pykdtree (/thread-16953.html)



package(s) error pykdtree - zahid990170 - Mar-21-2019

Hi all,

I have just joined the forum,
I started programming in Python, only recently.

I have installed Anaconda, and PyCharm.

I had installed some packages that were working fine, but suddenly, PyCharm issues an error when I try to run my program.

For example, (just one example)

'File "C:/Users/zahid/PycharmProjects/PathFinder/test.py", line 2, in <module>
from pykdtree.kdtree import KDTree
File "__init__.pxd", line 163, in init pykdtree.kdtree'


In the beginning of the file, test.py, I have the following statement:

from pykdtree.kdtree import KDTree

It happened only recently, and I do not know the reason.
I am using Python 3.7

I have done the following: Within PyCharm
I choose, File -> Settings
then, Project Interpreter
I have the following Project Interpreter
C:\Users\zahid\Anaconda3\python.exe

On the right side, I click on green circle (use Conda Package Manager)
then, I search for 'pip', and double click,
In the next window, I search
pykdtree

and click, install package

and it says, package installed successfully,


Two Questions:

(1) if I had done this process, why on my second time, when I land this window, the respective package (pykdtree in this case is uninstalled)

(2) If I run again my program, the problem still remains,


When, I open the Anaconda Prompt, and try

pip install pykdtree,

it says the following ,
Requirement already satisfied: pykdtree in c:\users\zahid\anaconda3\lib\site-packages (1.3.1)
Requirement already satisfied: numpy in c:\users\zahid\anaconda3\lib\site-packages (from pykdtree) (1.16.2)

Where is the problem,

please somebody can help me,

thank you !!

Zahid