I've created a virtual environment using
conda create --name py
And my initial plan was to add a directory to the PYTHONPATH
variable but only for the py
virtual environment.
I since found an alternative solution that uses .pth files. I've followed the instructions and put the file containing my package into an plain text file with a .pth
extension and saved into the site-packages
directory for the py
environment but this does not allow my to import
my package.
In summary: I put this path
`C:\Users\Ciaran\Documents\PyCoTools`
which contains the setup.py
for my package into a plain text file and saved to
C:\Anaconda2\envs\pycotools\Lib\site-packages\pycotools.pth
However I still cannot import my package from anywhere other than the package directory. Can anybody point out what I'm doing wrong?