Comments (7)
Hey @dylanh724, sphinx uses the standard Python declaration for scripts:
Lines 106 to 107 in c41aab8
So if there is a problem it would likely lie with flit or pip (I've never encountered this problem, but then I don't use windows and also no idea what chocolatey is)
Alternatively, you can more specifically target the correct Python executable using:
python -m sphinx.cmd.build
, let me know if that works
Got it --
WARNING: The scripts sphinx-apidoc.exe, sphinx-autogen.exe, sphinx-build.exe and sphinx-quickstart.exe are installed in 'C:\Users\dylan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts' which is not on PATH.
Consider adding this directory to PATH
It turns out that the Microsoft Store variant of Python does not include /Scripts to path (strange since they add python/pip to path).
Since they have a really wild path/to (you can't even view the dir in Windows - it's encrypted from yourself with access denied if you attempt to browse), this warning is the only chance to find where the correct path/to/Scripts/ actually is.
Windows...
This is the most official way to get Python these days, so you'll probably start seeing more tickets like this @chrisjsewell - thanks for the speedy response.
from sphinx.
@zooba that's exactly what I already said 😅 #12342 (comment)
from sphinx.
Hey @dylanh724, sphinx uses the standard Python declaration for scripts:
Lines 106 to 107 in c41aab8
So if there is a problem it would likely lie with flit or pip
(I've never encountered this problem, but then I don't use windows and also no idea what chocolatey is)
Alternatively, you can more specifically target the correct Python executable using: python -m sphinx.cmd.build
,
let me know if that works
from sphinx.
TL;DR
Windows users that installed from Microsoft Store should add the following path to their user env var:
C:\Users\{user}\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts
{user}
from sphinx.
^ @chrisjsewell Hmm... you know, it may be worth including this in the Windows install doc if they get a command not found err. If this isn't a common issue yet, it will be.
from sphinx.
Rather than telling users to modify PATH, I'd recommend you make sure that python -m sphinx build
(or some similar spelling) works, and let people use that. It is significantly more robust for global installs than using the generated script executables (though those tend to be just fine in a virtual environment).
from sphinx.
Perhaps this should be in the install docs?
pip install -U sphinx
After installation, type sphinx-build --version on the command prompt.
Eg, add the prefix here.
from sphinx.
Related Issues (20)
- LaTeX/ImageConverter: Regression with `data:` URIs HOT 1
- Have emoji and U+28FF working in sphinx ``lualatex`` generated for titles and code HOT 6
- Should `defusedxml` be moved to the runtime dependencies? HOT 5
- When compiling linux kernel(drm-tis), failed at module `docutils.nodes` for no attribute ‘reprunicode’ HOT 11
- ext.napoleon to work with ext.todo HOT 2
- `:loading: embed` on images does not work as expected HOT 7
- ``todo`` directive treat repeated special characters as headers
- toc_object_entries uses language (Python) scoping instead of documentation scoping HOT 2
- TOWER_HOST=https://awx.example.org TOWER_USERNAME=example TOWER_PASSWORD=secret make clean html HOT 1
- Index pages use `–` but it can not be used in ePub HOT 3
- Intersphinx Mapping link not working with Plotly objects in signature HOT 4
- Internationalization doc mentions deprecated transifex-client HOT 1
- 7.3.7: missing `defusedxml` install time dependency HOT 2
- THYDUX COIN 𝕏 🥏
- Multiple labels inside math directives HOT 1
- LaTeX: footnote mark may indicate "Page N, M" but footnote M is already on page N
- Gettext builder cannot extract 'option' directive HOT 4
- `autodoc_class_signature = "separated"` cause a warning for enum with no `__init__` HOT 12
- [search] issues with the new HTML search algorithm HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sphinx.