Kaila Hall
2018-06-26 14:27:17 UTC
I'm very new to Python coding and I'm using Spyder to test some script to
install and import packages that will eventually be used in a different
program. I'm having trouble getting simpledbf to install properly. From
looking at the guidance on the simpledbf page
(https://anaconda.org/rnelsonchem/simpledbf) I have specified the channel
as directed.
My code is as follows -
try:
import simpledbf
print 'simpledbf imported from existing install'
except ImportError, e:
conda.cli.main('conda', 'install', '-c', 'rnelsonchem', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'
which results in error -
UnsatisfiableError: The following specifications were found to be in
conflict:
- simpledbf
- urllib3
Use "conda info <package>" to see the dependencies for each package.
simpledbf installed
...
ImportError: No module named simpledbf
Which suggests that the package has not been installed correctly
I have also tried the same package but from a different channel
(https://anaconda.org/mikesilva/simpledbf) don't really understand if they
are different or not
try:
import simpledbf
print 'simpledbf imported from existing install'
except ImportError, e:
conda.cli.main('conda', 'install', '-c', 'mikesilva', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'
but that gives this error -
UnsatisfiableError: The following specifications were found to be in
conflict:
- futures
- simpledbf
Use "conda info <package>" to see the dependencies for each package.
simpledbf installed
...
ImportError: No module named simpledbf
Again suggesting that the package has not been installed correctly.
Any suggestions on what I'm doing wrong or how to correct the issue would
be gratefully received
Thanks
Kaila
install and import packages that will eventually be used in a different
program. I'm having trouble getting simpledbf to install properly. From
looking at the guidance on the simpledbf page
(https://anaconda.org/rnelsonchem/simpledbf) I have specified the channel
as directed.
My code is as follows -
try:
import simpledbf
print 'simpledbf imported from existing install'
except ImportError, e:
conda.cli.main('conda', 'install', '-c', 'rnelsonchem', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'
which results in error -
UnsatisfiableError: The following specifications were found to be in
conflict:
- simpledbf
- urllib3
Use "conda info <package>" to see the dependencies for each package.
simpledbf installed
...
ImportError: No module named simpledbf
Which suggests that the package has not been installed correctly
I have also tried the same package but from a different channel
(https://anaconda.org/mikesilva/simpledbf) don't really understand if they
are different or not
try:
import simpledbf
print 'simpledbf imported from existing install'
except ImportError, e:
conda.cli.main('conda', 'install', '-c', 'mikesilva', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'
but that gives this error -
UnsatisfiableError: The following specifications were found to be in
conflict:
- futures
- simpledbf
Use "conda info <package>" to see the dependencies for each package.
simpledbf installed
...
ImportError: No module named simpledbf
Again suggesting that the package has not been installed correctly.
Any suggestions on what I'm doing wrong or how to correct the issue would
be gratefully received
Thanks
Kaila
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/d54d9b20-e970-4991-9887-b00647b271df%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/d54d9b20-e970-4991-9887-b00647b271df%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.