सबवर्सन के documentation में अजगरअजगर सबवर्सन आवरण पुस्तकालय
#!/usr/bin/python
import svn.fs, svn.core, svn.repos
def crawl_filesystem_dir(root, directory):
"""Recursively crawl DIRECTORY under ROOT in the filesystem, and return a list of all the paths at or below DIRECTORY."""
# Get the directory entries for DIRECTORY.
entries = svn.fs.svn_fs_dir_entries(root, directory)
से सबवर्सन का उपयोग करते समय मैं इस कोड मैं एक आयात त्रुटि मिलती है चलाने का एक उदाहरण है पुस्तकालय svn
। मैंने पैकेज को स्थापित करने का प्रयास किया, लेकिन पायथन पैकेज मैनेजर इसे नहीं ढूंढ पाया।
$ pip install svn
Downloading/unpacking svn
Could not find any downloads that satisfy the requirement svn
No distributions at all found for svn
तो, मैं इस पुस्तकालय को कैसे स्थापित करूं?
यह थोड़ा अजीब नहीं है और अधिक या कम होना चाहिए कि यह 'svn.core' के बारे में शिकायत नहीं बल्कि' के बारे में svn.fs' (उत्तरार्द्ध आयात सूची पर पहले आता है)? – NPE
आपने मुझे पकड़ा, मैंने इंटरैक्टिव प्रॉम्प्ट –