Already installed plotly but still can't import









up vote
3
down vote

favorite












I am trying to use plotly within Jupyter Notebook and have followed every step listed in the Getting Started with Plotly for Python here. I created a free account with plotly but when I try to import plotly and set my credentials in jupyter using my username and API, I continually see: ModuleNotFoundError: No module named 'plotly'.



Right on plotly's website it says to update my config file after regenerating my API key. However, I do not have a .plotly folder anywhere on my computer and therefore cannot find the .plotly/.config file to update the key. I'm on a work computer and have searched both my network drives and C: drive for the .plotly folder but I don't get any results.



I can see that plotly is installed:
command line output for pip install plotly



I've seen someone mention that maybe I've installed plotly where my python environment can't see it. Here is the pip show plotly output: pip show plotly. How can I check where I'm running python from?



I've also seen someone suggest checking where python is searching for modules using import sys. Here is that output below. The very first filepath lists the plotly folder, which makes me think my issue is a configuration/API one.



import sys/sys.path



I also tried importing plotly using a specific file path and setting my credentials but get a different error. It says I cannot import 'exceptions' but I have an exceptions.py file in my plotly folder: import plotly with filepath



I am a Python novice and also not very familiar with command line. Can anyone point me in the right direction for trying to locate the .config plotly file if searching my computer for it turns up nothing?










share|improve this question























  • Have you run pip, as per the installation section ? That is where the config folder/file would get installed.
    – MikeW
    Nov 8 at 16:15










  • Do a pip freeze this will show you all of the packages installed.
    – SPYBUG96
    Nov 8 at 16:16










  • Hi @MikeW - yes, I have. You can see in the first picture above that plotly is installed.
    – Kelly
    Nov 8 at 16:17










  • Hi @SPYBUG96, pip freeze shows that plotly 3.4.0 is installed.
    – Kelly
    Nov 8 at 16:17










  • I would think the most important step to start with is the lack of your config file ...
    – MikeW
    Nov 8 at 16:26














up vote
3
down vote

favorite












I am trying to use plotly within Jupyter Notebook and have followed every step listed in the Getting Started with Plotly for Python here. I created a free account with plotly but when I try to import plotly and set my credentials in jupyter using my username and API, I continually see: ModuleNotFoundError: No module named 'plotly'.



Right on plotly's website it says to update my config file after regenerating my API key. However, I do not have a .plotly folder anywhere on my computer and therefore cannot find the .plotly/.config file to update the key. I'm on a work computer and have searched both my network drives and C: drive for the .plotly folder but I don't get any results.



I can see that plotly is installed:
command line output for pip install plotly



I've seen someone mention that maybe I've installed plotly where my python environment can't see it. Here is the pip show plotly output: pip show plotly. How can I check where I'm running python from?



I've also seen someone suggest checking where python is searching for modules using import sys. Here is that output below. The very first filepath lists the plotly folder, which makes me think my issue is a configuration/API one.



import sys/sys.path



I also tried importing plotly using a specific file path and setting my credentials but get a different error. It says I cannot import 'exceptions' but I have an exceptions.py file in my plotly folder: import plotly with filepath



I am a Python novice and also not very familiar with command line. Can anyone point me in the right direction for trying to locate the .config plotly file if searching my computer for it turns up nothing?










share|improve this question























  • Have you run pip, as per the installation section ? That is where the config folder/file would get installed.
    – MikeW
    Nov 8 at 16:15










  • Do a pip freeze this will show you all of the packages installed.
    – SPYBUG96
    Nov 8 at 16:16










  • Hi @MikeW - yes, I have. You can see in the first picture above that plotly is installed.
    – Kelly
    Nov 8 at 16:17










  • Hi @SPYBUG96, pip freeze shows that plotly 3.4.0 is installed.
    – Kelly
    Nov 8 at 16:17










  • I would think the most important step to start with is the lack of your config file ...
    – MikeW
    Nov 8 at 16:26












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I am trying to use plotly within Jupyter Notebook and have followed every step listed in the Getting Started with Plotly for Python here. I created a free account with plotly but when I try to import plotly and set my credentials in jupyter using my username and API, I continually see: ModuleNotFoundError: No module named 'plotly'.



Right on plotly's website it says to update my config file after regenerating my API key. However, I do not have a .plotly folder anywhere on my computer and therefore cannot find the .plotly/.config file to update the key. I'm on a work computer and have searched both my network drives and C: drive for the .plotly folder but I don't get any results.



I can see that plotly is installed:
command line output for pip install plotly



I've seen someone mention that maybe I've installed plotly where my python environment can't see it. Here is the pip show plotly output: pip show plotly. How can I check where I'm running python from?



I've also seen someone suggest checking where python is searching for modules using import sys. Here is that output below. The very first filepath lists the plotly folder, which makes me think my issue is a configuration/API one.



import sys/sys.path



I also tried importing plotly using a specific file path and setting my credentials but get a different error. It says I cannot import 'exceptions' but I have an exceptions.py file in my plotly folder: import plotly with filepath



I am a Python novice and also not very familiar with command line. Can anyone point me in the right direction for trying to locate the .config plotly file if searching my computer for it turns up nothing?










share|improve this question















I am trying to use plotly within Jupyter Notebook and have followed every step listed in the Getting Started with Plotly for Python here. I created a free account with plotly but when I try to import plotly and set my credentials in jupyter using my username and API, I continually see: ModuleNotFoundError: No module named 'plotly'.



Right on plotly's website it says to update my config file after regenerating my API key. However, I do not have a .plotly folder anywhere on my computer and therefore cannot find the .plotly/.config file to update the key. I'm on a work computer and have searched both my network drives and C: drive for the .plotly folder but I don't get any results.



I can see that plotly is installed:
command line output for pip install plotly



I've seen someone mention that maybe I've installed plotly where my python environment can't see it. Here is the pip show plotly output: pip show plotly. How can I check where I'm running python from?



I've also seen someone suggest checking where python is searching for modules using import sys. Here is that output below. The very first filepath lists the plotly folder, which makes me think my issue is a configuration/API one.



import sys/sys.path



I also tried importing plotly using a specific file path and setting my credentials but get a different error. It says I cannot import 'exceptions' but I have an exceptions.py file in my plotly folder: import plotly with filepath



I am a Python novice and also not very familiar with command line. Can anyone point me in the right direction for trying to locate the .config plotly file if searching my computer for it turns up nothing?







python config plotly






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 8 at 16:15









SPYBUG96

4411522




4411522










asked Nov 8 at 16:02









Kelly

184




184











  • Have you run pip, as per the installation section ? That is where the config folder/file would get installed.
    – MikeW
    Nov 8 at 16:15










  • Do a pip freeze this will show you all of the packages installed.
    – SPYBUG96
    Nov 8 at 16:16










  • Hi @MikeW - yes, I have. You can see in the first picture above that plotly is installed.
    – Kelly
    Nov 8 at 16:17










  • Hi @SPYBUG96, pip freeze shows that plotly 3.4.0 is installed.
    – Kelly
    Nov 8 at 16:17










  • I would think the most important step to start with is the lack of your config file ...
    – MikeW
    Nov 8 at 16:26
















  • Have you run pip, as per the installation section ? That is where the config folder/file would get installed.
    – MikeW
    Nov 8 at 16:15










  • Do a pip freeze this will show you all of the packages installed.
    – SPYBUG96
    Nov 8 at 16:16










  • Hi @MikeW - yes, I have. You can see in the first picture above that plotly is installed.
    – Kelly
    Nov 8 at 16:17










  • Hi @SPYBUG96, pip freeze shows that plotly 3.4.0 is installed.
    – Kelly
    Nov 8 at 16:17










  • I would think the most important step to start with is the lack of your config file ...
    – MikeW
    Nov 8 at 16:26















Have you run pip, as per the installation section ? That is where the config folder/file would get installed.
– MikeW
Nov 8 at 16:15




Have you run pip, as per the installation section ? That is where the config folder/file would get installed.
– MikeW
Nov 8 at 16:15












Do a pip freeze this will show you all of the packages installed.
– SPYBUG96
Nov 8 at 16:16




Do a pip freeze this will show you all of the packages installed.
– SPYBUG96
Nov 8 at 16:16












Hi @MikeW - yes, I have. You can see in the first picture above that plotly is installed.
– Kelly
Nov 8 at 16:17




Hi @MikeW - yes, I have. You can see in the first picture above that plotly is installed.
– Kelly
Nov 8 at 16:17












Hi @SPYBUG96, pip freeze shows that plotly 3.4.0 is installed.
– Kelly
Nov 8 at 16:17




Hi @SPYBUG96, pip freeze shows that plotly 3.4.0 is installed.
– Kelly
Nov 8 at 16:17












I would think the most important step to start with is the lack of your config file ...
– MikeW
Nov 8 at 16:26




I would think the most important step to start with is the lack of your config file ...
– MikeW
Nov 8 at 16:26












2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










There are some confusing things for the first sight:
I see you may use Anaconda or you installed it previously. But you installed plotly in pure Python using pip.
If you have Anaconda installed, then I suggest you to use it.
Start anaconda-navigator and install plotly inside of it.
Then start your code or Jupyter notebook inside of the same anaconda environment.



For Example: If you run jupyter from anaconda, your code will not find plotly if you installed it in some pure python environment or some other anaconda environment.



UPDATE:
If you have the problem you mentioned below, without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. There may be some problem around Anaconda and it should solve it.






share|improve this answer






















  • Hi @Geeocode, I tried this but now I get an error that says 'ImportError: cannot import name 'offline'' when I attempt to import plotly in jupyter. Does this mean that the package was at least installed correctly? When I try to install plotly using Anaconda prompt, I get an 'Access Denied' error. When I try to install it directly in Anaconda Navigator, it spins like I'm installing it but then nothing shows up in my installed environments.
    – Kelly
    Nov 8 at 17:30











  • @Kelly the endless spinning could be due to the access error, I guess. I'm under linux now, so I can't simulate the error and when it can occur. Without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. But If you can say why your access error occurs, which is weird under Windows, may exist other solution too.
    – Geeocode
    Nov 8 at 17:44










  • thank you for the help. I had a feeling it has something to do with access. I have no idea how I would even go about figuring out where the access error is coming from so I'll try to reinstall Anaconda. Thanks again!
    – Kelly
    Nov 8 at 18:25











  • uninstalling and reinstalling worked! Thanks again for the help. I should've tried this first.
    – Kelly
    Nov 8 at 20:58











  • @Kelly I'm happy to your success. I write though my comment in my answer, so you may accept it, if you think. good luck!
    – Geeocode
    Nov 8 at 21:16

















up vote
1
down vote













Ok, having tried the steps:



  • install plotly via pip

  • run the two-line python program in the Installation guide

I seem to end up with a credentials file - it's the two-liner that creates this.



So check that you can import from the command shell python. If you can, then it's more likely it's a PYTHONPATH issue.



C:Usersxxx>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import plotly
>>> plotly.tools.set_credentials_file(username='DemoAccount', api_key='lr1c37zw81')
>>> quit()

C:Usersxxx>dir .plotly
Volume in drive C is OSDISK
Volume Serial Number is DCCD-845E

Directory of C:Usersxxx.plotly

09/11/2018 09:25 <DIR> .
09/11/2018 09:25 <DIR> ..
09/11/2018 09:25 302 .config
09/11/2018 09:25 142 .credentials
2 File(s) 444 bytes
2 Dir(s) 111,849,033,728 bytes free





share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53211575%2falready-installed-plotly-but-still-cant-import%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    There are some confusing things for the first sight:
    I see you may use Anaconda or you installed it previously. But you installed plotly in pure Python using pip.
    If you have Anaconda installed, then I suggest you to use it.
    Start anaconda-navigator and install plotly inside of it.
    Then start your code or Jupyter notebook inside of the same anaconda environment.



    For Example: If you run jupyter from anaconda, your code will not find plotly if you installed it in some pure python environment or some other anaconda environment.



    UPDATE:
    If you have the problem you mentioned below, without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. There may be some problem around Anaconda and it should solve it.






    share|improve this answer






















    • Hi @Geeocode, I tried this but now I get an error that says 'ImportError: cannot import name 'offline'' when I attempt to import plotly in jupyter. Does this mean that the package was at least installed correctly? When I try to install plotly using Anaconda prompt, I get an 'Access Denied' error. When I try to install it directly in Anaconda Navigator, it spins like I'm installing it but then nothing shows up in my installed environments.
      – Kelly
      Nov 8 at 17:30











    • @Kelly the endless spinning could be due to the access error, I guess. I'm under linux now, so I can't simulate the error and when it can occur. Without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. But If you can say why your access error occurs, which is weird under Windows, may exist other solution too.
      – Geeocode
      Nov 8 at 17:44










    • thank you for the help. I had a feeling it has something to do with access. I have no idea how I would even go about figuring out where the access error is coming from so I'll try to reinstall Anaconda. Thanks again!
      – Kelly
      Nov 8 at 18:25











    • uninstalling and reinstalling worked! Thanks again for the help. I should've tried this first.
      – Kelly
      Nov 8 at 20:58











    • @Kelly I'm happy to your success. I write though my comment in my answer, so you may accept it, if you think. good luck!
      – Geeocode
      Nov 8 at 21:16














    up vote
    1
    down vote



    accepted










    There are some confusing things for the first sight:
    I see you may use Anaconda or you installed it previously. But you installed plotly in pure Python using pip.
    If you have Anaconda installed, then I suggest you to use it.
    Start anaconda-navigator and install plotly inside of it.
    Then start your code or Jupyter notebook inside of the same anaconda environment.



    For Example: If you run jupyter from anaconda, your code will not find plotly if you installed it in some pure python environment or some other anaconda environment.



    UPDATE:
    If you have the problem you mentioned below, without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. There may be some problem around Anaconda and it should solve it.






    share|improve this answer






















    • Hi @Geeocode, I tried this but now I get an error that says 'ImportError: cannot import name 'offline'' when I attempt to import plotly in jupyter. Does this mean that the package was at least installed correctly? When I try to install plotly using Anaconda prompt, I get an 'Access Denied' error. When I try to install it directly in Anaconda Navigator, it spins like I'm installing it but then nothing shows up in my installed environments.
      – Kelly
      Nov 8 at 17:30











    • @Kelly the endless spinning could be due to the access error, I guess. I'm under linux now, so I can't simulate the error and when it can occur. Without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. But If you can say why your access error occurs, which is weird under Windows, may exist other solution too.
      – Geeocode
      Nov 8 at 17:44










    • thank you for the help. I had a feeling it has something to do with access. I have no idea how I would even go about figuring out where the access error is coming from so I'll try to reinstall Anaconda. Thanks again!
      – Kelly
      Nov 8 at 18:25











    • uninstalling and reinstalling worked! Thanks again for the help. I should've tried this first.
      – Kelly
      Nov 8 at 20:58











    • @Kelly I'm happy to your success. I write though my comment in my answer, so you may accept it, if you think. good luck!
      – Geeocode
      Nov 8 at 21:16












    up vote
    1
    down vote



    accepted







    up vote
    1
    down vote



    accepted






    There are some confusing things for the first sight:
    I see you may use Anaconda or you installed it previously. But you installed plotly in pure Python using pip.
    If you have Anaconda installed, then I suggest you to use it.
    Start anaconda-navigator and install plotly inside of it.
    Then start your code or Jupyter notebook inside of the same anaconda environment.



    For Example: If you run jupyter from anaconda, your code will not find plotly if you installed it in some pure python environment or some other anaconda environment.



    UPDATE:
    If you have the problem you mentioned below, without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. There may be some problem around Anaconda and it should solve it.






    share|improve this answer














    There are some confusing things for the first sight:
    I see you may use Anaconda or you installed it previously. But you installed plotly in pure Python using pip.
    If you have Anaconda installed, then I suggest you to use it.
    Start anaconda-navigator and install plotly inside of it.
    Then start your code or Jupyter notebook inside of the same anaconda environment.



    For Example: If you run jupyter from anaconda, your code will not find plotly if you installed it in some pure python environment or some other anaconda environment.



    UPDATE:
    If you have the problem you mentioned below, without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. There may be some problem around Anaconda and it should solve it.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 8 at 21:19

























    answered Nov 8 at 17:03









    Geeocode

    1,7721718




    1,7721718











    • Hi @Geeocode, I tried this but now I get an error that says 'ImportError: cannot import name 'offline'' when I attempt to import plotly in jupyter. Does this mean that the package was at least installed correctly? When I try to install plotly using Anaconda prompt, I get an 'Access Denied' error. When I try to install it directly in Anaconda Navigator, it spins like I'm installing it but then nothing shows up in my installed environments.
      – Kelly
      Nov 8 at 17:30











    • @Kelly the endless spinning could be due to the access error, I guess. I'm under linux now, so I can't simulate the error and when it can occur. Without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. But If you can say why your access error occurs, which is weird under Windows, may exist other solution too.
      – Geeocode
      Nov 8 at 17:44










    • thank you for the help. I had a feeling it has something to do with access. I have no idea how I would even go about figuring out where the access error is coming from so I'll try to reinstall Anaconda. Thanks again!
      – Kelly
      Nov 8 at 18:25











    • uninstalling and reinstalling worked! Thanks again for the help. I should've tried this first.
      – Kelly
      Nov 8 at 20:58











    • @Kelly I'm happy to your success. I write though my comment in my answer, so you may accept it, if you think. good luck!
      – Geeocode
      Nov 8 at 21:16
















    • Hi @Geeocode, I tried this but now I get an error that says 'ImportError: cannot import name 'offline'' when I attempt to import plotly in jupyter. Does this mean that the package was at least installed correctly? When I try to install plotly using Anaconda prompt, I get an 'Access Denied' error. When I try to install it directly in Anaconda Navigator, it spins like I'm installing it but then nothing shows up in my installed environments.
      – Kelly
      Nov 8 at 17:30











    • @Kelly the endless spinning could be due to the access error, I guess. I'm under linux now, so I can't simulate the error and when it can occur. Without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. But If you can say why your access error occurs, which is weird under Windows, may exist other solution too.
      – Geeocode
      Nov 8 at 17:44










    • thank you for the help. I had a feeling it has something to do with access. I have no idea how I would even go about figuring out where the access error is coming from so I'll try to reinstall Anaconda. Thanks again!
      – Kelly
      Nov 8 at 18:25











    • uninstalling and reinstalling worked! Thanks again for the help. I should've tried this first.
      – Kelly
      Nov 8 at 20:58











    • @Kelly I'm happy to your success. I write though my comment in my answer, so you may accept it, if you think. good luck!
      – Geeocode
      Nov 8 at 21:16















    Hi @Geeocode, I tried this but now I get an error that says 'ImportError: cannot import name 'offline'' when I attempt to import plotly in jupyter. Does this mean that the package was at least installed correctly? When I try to install plotly using Anaconda prompt, I get an 'Access Denied' error. When I try to install it directly in Anaconda Navigator, it spins like I'm installing it but then nothing shows up in my installed environments.
    – Kelly
    Nov 8 at 17:30





    Hi @Geeocode, I tried this but now I get an error that says 'ImportError: cannot import name 'offline'' when I attempt to import plotly in jupyter. Does this mean that the package was at least installed correctly? When I try to install plotly using Anaconda prompt, I get an 'Access Denied' error. When I try to install it directly in Anaconda Navigator, it spins like I'm installing it but then nothing shows up in my installed environments.
    – Kelly
    Nov 8 at 17:30













    @Kelly the endless spinning could be due to the access error, I guess. I'm under linux now, so I can't simulate the error and when it can occur. Without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. But If you can say why your access error occurs, which is weird under Windows, may exist other solution too.
    – Geeocode
    Nov 8 at 17:44




    @Kelly the endless spinning could be due to the access error, I guess. I'm under linux now, so I can't simulate the error and when it can occur. Without any knowledge regarding your system, I think the wisest action can be uninstall Anaconda and installing it again. But If you can say why your access error occurs, which is weird under Windows, may exist other solution too.
    – Geeocode
    Nov 8 at 17:44












    thank you for the help. I had a feeling it has something to do with access. I have no idea how I would even go about figuring out where the access error is coming from so I'll try to reinstall Anaconda. Thanks again!
    – Kelly
    Nov 8 at 18:25





    thank you for the help. I had a feeling it has something to do with access. I have no idea how I would even go about figuring out where the access error is coming from so I'll try to reinstall Anaconda. Thanks again!
    – Kelly
    Nov 8 at 18:25













    uninstalling and reinstalling worked! Thanks again for the help. I should've tried this first.
    – Kelly
    Nov 8 at 20:58





    uninstalling and reinstalling worked! Thanks again for the help. I should've tried this first.
    – Kelly
    Nov 8 at 20:58













    @Kelly I'm happy to your success. I write though my comment in my answer, so you may accept it, if you think. good luck!
    – Geeocode
    Nov 8 at 21:16




    @Kelly I'm happy to your success. I write though my comment in my answer, so you may accept it, if you think. good luck!
    – Geeocode
    Nov 8 at 21:16












    up vote
    1
    down vote













    Ok, having tried the steps:



    • install plotly via pip

    • run the two-line python program in the Installation guide

    I seem to end up with a credentials file - it's the two-liner that creates this.



    So check that you can import from the command shell python. If you can, then it's more likely it's a PYTHONPATH issue.



    C:Usersxxx>python
    Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import plotly
    >>> plotly.tools.set_credentials_file(username='DemoAccount', api_key='lr1c37zw81')
    >>> quit()

    C:Usersxxx>dir .plotly
    Volume in drive C is OSDISK
    Volume Serial Number is DCCD-845E

    Directory of C:Usersxxx.plotly

    09/11/2018 09:25 <DIR> .
    09/11/2018 09:25 <DIR> ..
    09/11/2018 09:25 302 .config
    09/11/2018 09:25 142 .credentials
    2 File(s) 444 bytes
    2 Dir(s) 111,849,033,728 bytes free





    share|improve this answer
























      up vote
      1
      down vote













      Ok, having tried the steps:



      • install plotly via pip

      • run the two-line python program in the Installation guide

      I seem to end up with a credentials file - it's the two-liner that creates this.



      So check that you can import from the command shell python. If you can, then it's more likely it's a PYTHONPATH issue.



      C:Usersxxx>python
      Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import plotly
      >>> plotly.tools.set_credentials_file(username='DemoAccount', api_key='lr1c37zw81')
      >>> quit()

      C:Usersxxx>dir .plotly
      Volume in drive C is OSDISK
      Volume Serial Number is DCCD-845E

      Directory of C:Usersxxx.plotly

      09/11/2018 09:25 <DIR> .
      09/11/2018 09:25 <DIR> ..
      09/11/2018 09:25 302 .config
      09/11/2018 09:25 142 .credentials
      2 File(s) 444 bytes
      2 Dir(s) 111,849,033,728 bytes free





      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        Ok, having tried the steps:



        • install plotly via pip

        • run the two-line python program in the Installation guide

        I seem to end up with a credentials file - it's the two-liner that creates this.



        So check that you can import from the command shell python. If you can, then it's more likely it's a PYTHONPATH issue.



        C:Usersxxx>python
        Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
        Type "help", "copyright", "credits" or "license" for more information.
        >>> import plotly
        >>> plotly.tools.set_credentials_file(username='DemoAccount', api_key='lr1c37zw81')
        >>> quit()

        C:Usersxxx>dir .plotly
        Volume in drive C is OSDISK
        Volume Serial Number is DCCD-845E

        Directory of C:Usersxxx.plotly

        09/11/2018 09:25 <DIR> .
        09/11/2018 09:25 <DIR> ..
        09/11/2018 09:25 302 .config
        09/11/2018 09:25 142 .credentials
        2 File(s) 444 bytes
        2 Dir(s) 111,849,033,728 bytes free





        share|improve this answer












        Ok, having tried the steps:



        • install plotly via pip

        • run the two-line python program in the Installation guide

        I seem to end up with a credentials file - it's the two-liner that creates this.



        So check that you can import from the command shell python. If you can, then it's more likely it's a PYTHONPATH issue.



        C:Usersxxx>python
        Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
        Type "help", "copyright", "credits" or "license" for more information.
        >>> import plotly
        >>> plotly.tools.set_credentials_file(username='DemoAccount', api_key='lr1c37zw81')
        >>> quit()

        C:Usersxxx>dir .plotly
        Volume in drive C is OSDISK
        Volume Serial Number is DCCD-845E

        Directory of C:Usersxxx.plotly

        09/11/2018 09:25 <DIR> .
        09/11/2018 09:25 <DIR> ..
        09/11/2018 09:25 302 .config
        09/11/2018 09:25 142 .credentials
        2 File(s) 444 bytes
        2 Dir(s) 111,849,033,728 bytes free






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 9 at 9:38









        MikeW

        2,05611418




        2,05611418



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53211575%2falready-installed-plotly-but-still-cant-import%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

            Edmonton

            Crossroads (UK TV series)