GithubHelp home page GithubHelp logo

installing pep8 fails about vscode-python HOT 6 CLOSED

microsoft avatar microsoft commented on August 15, 2024
installing pep8 fails

from vscode-python.

Comments (6)

DonJayamanne avatar DonJayamanne commented on August 15, 2024

Please could you try installing pep8 manually from the terminal.
Try the following command:

/home/yolen/Desktop/data-analysis/azureenv/bin/python -m pip install pep8

from vscode-python.

JensMadsen avatar JensMadsen commented on August 15, 2024

that virtual env died so I cannot try. I think that my problem is due to my conda installation. When I click install pep8 it uses /usr/bin/python and not my conda installation elsewhere. So in the vs code terminal i get

yolen@yolen-ThinkPad-X260:~$ which python
/home/yolen/scicomp/anaconda3/bin/python

but clicking the "install autopep8" uses /usr/bin/python. Therefore I have tried to change the pythonpath in settings. Then I get

yolen@yolen-ThinkPad-X260:$ /home/yolen/scicomp/anaconda3/bin/python -m pip install autopep8
Requirement already satisfied: autopep8 in ./scicomp/anaconda3/lib/python3.6/site-packages
Requirement already satisfied: pycodestyle>=2.3 in ./scicomp/anaconda3/lib/python3.6/site-packages (from autopep8)
yolen@yolen-ThinkPad-X260:
$

restart and it works it seems

from vscode-python.

DonJayamanne avatar DonJayamanne commented on August 15, 2024

Awesome

from vscode-python.

JensMadsen avatar JensMadsen commented on August 15, 2024

not working again :-(

from vscode-python.

DonJayamanne avatar DonJayamanne commented on August 15, 2024

Please could you be a bit more specific.

  • What's not working?
  • What's the error?
  • Is there any output in the Python output window and the console window (Help->Toggle Developer tools)

from vscode-python.

MikhailArkhipov avatar MikhailArkhipov commented on August 15, 2024

Looks like machine configuration issue, specifically C++ side of things.

lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so: 
undefined symbol: _PyUnicode_AsWideCharString

This means Python binary is unable to locate PyUnicode_AsWideCharString entry point which most probably some other installation overwrote shared library that is not compatible with this specific Python.

See https://stackoverflow.com/questions/45998875/tensorflow-python-importerror-undefined-symbol-pyunicode-aswidecharstring

from vscode-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.